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 146654 - Invalid code is generated when you use "Add property" in empty enum
Summary: Invalid code is generated when you use "Add property" in empty enum
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Beans (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on: 229734
Blocks:
  Show dependency tree
 
Reported: 2008-09-09 14:50 UTC by Petr Dvorak
Modified: 2013-05-27 12:43 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 Dvorak 2008-09-09 14:50:01 UTC
Product Version: NetBeans IDE Dev (Build 200809081401)
Java: 1.5.0_14; Java HotSpot(TM) Client VM 1.5.0_14-b03
System: SunOS version 5.10 running on sparc; ISO646-US; en (nb)

1. Create a new Java Enum in an empty Java Application
2. Go to the enum's body and press Alt+Insert
3. Select "Add property" from the popup menu
4. Set some parameters or leave default values and press OK
-> invalid code is generated in editor

The problem is that Add Property is not called behind enum's fields... "Add property" option should not be present in
this case...
Comment 1 Quality Engineering 2013-05-18 02:55:31 UTC
Integrated into 'main-golden', will be available in build *201305172300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/4b113afdeecc
User: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
Log: #146654 - Invalid code is generated when you use "Add property" in empty enum
Comment 2 Ralph Ruijs 2013-05-27 12:43:29 UTC
Should be fixed by b48b333c6b20