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

Summary: Case statement code completion of enums should only show unused items
Product: java Reporter: _ tboudreau <tboudreau>
Component: EditorAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: blocker CC: markiewb
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

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.