Bug 174427

Summary: error relating to enum, where sun compiler is happy
Product: [Eclipse Project] JDT Reporter: Dave Rodgman <dav1dr>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: VERIFIED WORKSFORME QA Contact:
Severity: major    
Priority: P3    
Version: 3.2.1   
Target Milestone: 3.2.2   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Dave Rodgman CLA 2007-02-16 06:58:26 EST
Build ID: Eclipse Java Compiler v_677_R32x, 3.2.1 release

Steps To Reproduce:
1. create directory called testcase, containing the single file called MyClass.java, which should contain:

public class MyClass {
    enum MyEnum { A };
}

2. compile with commandline:

ecj -classpath testcase -g -source 1.5 -target 1.5 testcase/MyClass.java

3. observe error:

----------
1. ERROR in testcase/MyClass.java (at line 1)
        public class MyClass {
        ^^
The type Enum is not generic; it cannot be parameterized with arguments <MyClass.MyEnum>


More information:
Sun's javac 1.5.0_08 compiler compiles this fine with the same commandline
Comment 1 Olivier Thomann CLA 2007-02-16 09:00:38 EST
This is fixed in 3.2.2.
I'll check if I can find a duplicate bug.
Comment 2 Olivier Thomann CLA 2007-02-16 09:07:58 EST
Could not find a duplicate.
Closing as WORKSFORME.
Comment 3 Eric Jodet CLA 2007-03-21 03:21:54 EDT
Unable to reproduce error: code compiles OK using 3.2.1, 3.2 or 3.3
Comment 4 Eric Jodet CLA 2007-03-21 03:22:41 EDT
Verified for 3.3 M6 using build I20070320-0010