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 43854 - CC on Enum would return enum values
Summary: CC on Enum would return enum values
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-25 20:38 UTC by psuk
Modified: 2007-09-26 09:14 UTC (History)
0 users

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 psuk 2004-05-25 20:38:09 UTC
Build 040525 metastavbicka, JDK 1.5

1. You have 
enum Wows {Huhu, Bubu, Yeap};
in your class

2. Code completion on
        Wows w;
        w = Wows.|

should offer Huhu, Bubu and Yeap,  rather than valueOf
Comment 1 Miloslav Metelka 2004-05-26 13:30:18 UTC
AFAIK editor's part is done but assigning to Dusan to further
investigate that.
Comment 2 Dusan Balek 2004-05-26 15:34:10 UTC
When asking for an Enumeration's features, a generated field for each
declared enum constant together with two generated methods "values"
and "valueOf" should be returned as stated in Enums specification
(part III. Sematics). After this change, code completion should work.
Comment 3 Martin Matula 2004-11-04 10:42:52 UTC
This is already implemented.
Comment 4 Martin Matula 2004-11-04 10:43:56 UTC
r
Comment 5 Martin Matula 2004-11-04 10:45:26 UTC
f
Comment 6 Quality Engineering 2007-09-20 12:08:53 UTC
Reorganization of java component