Bug 168167 - EnumSet.copyOf produces comp. error: The method ... is ambiguous for the type ...
Summary: EnumSet.copyOf produces comp. error: The method ... is ambiguous for the type...
Status: RESOLVED DUPLICATE of bug 163370
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-15 03:00 EST by Martin Buch CLA
Modified: 2006-12-15 09:24 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 Martin Buch CLA 2006-12-15 03:00:50 EST
Following code compiles fine on 3.2.1 but I get compilation error on 3.3M3 (Build id: I20061102-1715). Maybe related to fix of Bugzilla Bug 149893?


public class AmbiguousTest {
  private enum SOME_ENUM{};
  private EnumSet<SOME_ENUM> aEnumSet;
	
  public AmbiguousTest() {
    EnumSet enumSetCopy = EnumSet.copyOf(aEnumSet);
  }
}
Comment 1 Olivier Thomann CLA 2006-12-15 09:24:38 EST

*** This bug has been marked as a duplicate of bug 163370 ***