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 - Nonexisting constant in enum should be added to other constants
Summary: Nonexisting constant in enum should be added to other constants
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-19 15:12 UTC by Jiri Prox
Modified: 2013-09-02 14:24 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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;    
}