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.
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...
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
Should be fixed by b48b333c6b20