Bug 174427 - error relating to enum, where sun compiler is happy
Summary: error relating to enum, where sun compiler is happy
Status: VERIFIED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2.1   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: 3.2.2   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-16 06:58 EST by Dave Rodgman CLA
Modified: 2007-03-21 03:29 EDT (History)
0 users

See Also:


Attachments

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