Bug 88756

Summary: [codeassist] Code assist propose anonymous enum
Product: [Eclipse Project] JDT Reporter: David Audel <david_audel>
Component: CoreAssignee: David Audel <david_audel>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: 3.1 M6   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description David Audel CLA 2005-03-22 10:41:01 EST
build I20050315-1100
1) create X.java
public enum X {
  A;
  private X() {}
}

2) create Y.java
public class Y {
  void foo() {
    new X(<complete here>
  }
}


An anynmous type is proposed and should not.
Comment 1 David Audel CLA 2005-03-22 10:43:06 EST
The option "Java>Editor>CodeAssist>Sorting and Filtering>Show only proposals
visible in the invocation context" must be uncheck.
Comment 2 David Audel CLA 2005-03-22 12:05:35 EST
Fixed and test added
  CompletionTests_1_5#test0143()
Comment 3 Olivier Thomann CLA 2005-03-30 15:03:56 EST
Verified in I20050330-0500