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.
1. Create file based on JFrame template, for example. 2. Insert a component into form, i.e. into guarded block at the end of the file there will be added some declaration, e.g. private javax.swing.JButton jButton1; 3. Now delete empty line between guarded block and right bracket (closing class body) 4. And now add new field via Explorer. It will be placed after the right bracket (i.e. outside class)
[1058]
[2011] Fixed; the behaviour was caused by guarded block avoidance code that returned a position past enclosing element's bounds in some cases. That was corrected and in some weird cases IllegalStateException is raised if the guarded block can't be avoided.
Resolved for 3.4.x or earlier, no new info since then -> closing.