This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 6149 - Inconsistent behavior after removing a class connected with a form.
Summary: Inconsistent behavior after removing a class connected with a form.
Status: CLOSED DUPLICATE of bug 12170
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: All All
: P4 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-04-10 17:03 UTC by Jan Chalupa
Modified: 2003-06-30 18:27 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Chalupa 2000-04-10 17:03:02 UTC
Steps to reproduce:

1. Select a form node (e.g. MemoryView) in the Explorer and open it in the Editor.
2. Expand the node. You should see two subnodes: 1. the class node, 2. the form node.
3. Delete the class node. The form node remains in place. In the Editor, the class definition disappears except for a single guarded line (!)
4. Use the form node to modify properties of elements in the form. The changes are made visible in the editor (!!!).
5. Delete the parent form node. Exceptions are thrown from the parser (see the attachment).
Comment 1 Tomas Pavek 2000-07-21 14:27:59 UTC
Currently (at least from build 1037 but probably sooner), the class node cannot
be deleted - "Attempt to remove from guarded block at position ..." message is
shown (it is a caught exception). The source code remains intact.
Comment 2 Marek Grummich 2000-07-25 09:10:59 UTC
Priority is changed to P4 (normal).
Comment 3 Jan Chalupa 2001-03-12 10:39:56 UTC
Version: 'Dev' -> 3.2
Comment 4 Jan Chalupa 2001-05-05 22:15:58 UTC
Target milestone -> 3.3
Comment 5 Tomas Pavek 2001-05-16 12:23:50 UTC
Revising this bug report...
I think it should not be possible to delete class node (or any elements in the 
code) form Explorer if it contains guarded blocks. It is similar to issue 
12170, so I'm making this a duplicate.

*** This issue has been marked as a duplicate of 12170 ***
Comment 6 Quality Engineering 2003-06-30 18:20:53 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 7 Quality Engineering 2003-06-30 18:27:01 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.