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

Summary: Invalid code is generated when you use "Add property" in empty enum
Product: java Reporter: Petr Dvorak <joshis>
Component: BeansAssignee: Ralph Ruijs <ralphbenjamin>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 229734    
Bug Blocks:    

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