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 105680 - Case statement code completion of enums should only show unused items
Summary: Case statement code completion of enums should only show unused items
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-05 02:47 UTC by _ tboudreau
Modified: 2013-09-02 14:21 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 _ tboudreau 2007-06-05 02:47:03 UTC
Say that I have a switch statement like:

switch (ownerOfMemberSelect.getNestingKind()) {
            case TOP_LEVEL :
                return "this";
            case ANONYMOUS :
            case ^
            }

When I place the caret at ^, TOP_LEVEL and ANONYMOUS still appear in code
completion.  It would be nicer if they did not, since duplicate case statements
are illegal.