Bug 84554 - [1.5] code assist in enum switch statements
Summary: [1.5] code assist in enum switch statements
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M6   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 86490 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-02-07 06:15 EST by Martin Aeschlimann CLA
Modified: 2005-03-30 14:42 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Aeschlimann CLA 2005-02-07 06:15:21 EST
I20050202

Code assist in enum switch case statements should only suggest the enum constants

public enum Colors {
  RED, BLUE, WHITE
}

class A {
  private void foo(Colors c) {
    switch (c) {
      case BLUE1:
      case |code assist here: suggest only 'RED', 'BLUE', 'WHITE'
    }
  }
}
Comment 1 Philipe Mulet CLA 2005-02-07 10:25:00 EST
Agreed
Comment 2 David Audel CLA 2005-02-24 11:26:10 EST
*** Bug 86490 has been marked as a duplicate of this bug. ***
Comment 3 David Audel CLA 2005-02-24 12:26:54 EST
Fixed and tests added
  EnumCompletionParserTest#test0002() -> test0007()
  CompletionTest_1_5#test0136() -> test0142()

tests updated
  CompletioParserTest2#test0119() -> test0120()
  FieldAccessCompletionTest#testSwithLabel()
Comment 4 Olivier Thomann CLA 2005-03-30 14:42:48 EST
Verified in I20050330-0500