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 7095 - Field is inserted outside class
Summary: Field is inserted outside class
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC All
: P3 normal (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-07-18 19:58 UTC by Petr Slegr
Modified: 2007-09-26 09:14 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 Petr Slegr 2000-07-18 19:58:47 UTC
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)
Comment 1 Petr Slegr 2000-07-18 19:59:59 UTC
[1058]
Comment 2 Svata Dedic 2000-07-19 16:14:59 UTC
[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.
Comment 3 Quality Engineering 2003-07-01 13:19:41 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.