Bug 88756 - [codeassist] Code assist propose anonymous enum
Summary: [codeassist] Code assist propose anonymous enum
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:
Depends on:
Blocks:
 
Reported: 2005-03-22 10:41 EST by David Audel CLA
Modified: 2005-03-30 15:03 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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