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.
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).
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.
Priority is changed to P4 (normal).
Version: 'Dev' -> 3.2
Target milestone -> 3.3
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 ***
Resolved for 3.3.x or earlier, no new info since then -> closing.