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 80624

Summary: Nonexisting constant in enum should be added to other constants
Product: java Reporter: Jiri Prox <jiriprox>
Component: HintsAssignee: Svata Dedic <sdedic>
Status: NEW ---    
Severity: blocker CC: markiewb
Priority: P3    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description Jiri Prox 2006-07-19 15:12:46 UTC
NB 5.5 200607190830

Java hint adding non existing constant to enum should add it to other constants
(e.g w/o modifiers and type)

Current behaviour:
 - have code : MyEnum x = MyEnum.D  (D is not defined in MyEnum)
 - use hint to add constant

I've got:

public enum MyEnum {
    A,B,C;

    static MyEnum D;    
}