Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0.0Release
-
Fix Version/s: 2.1.1Release
-
Component/s: Compiler Integration
-
Labels:None
-
Environment:Eclipse Galileo, jdk 1.6_16
-
Number of attachments :
Description
The following class/enum mixture in a groovy file causes Eclipse to put an error marker at the start of the file. This only happens intermittently, but the only consistent solution to the problem is for me to wipe out the projects resources plugin data and restart. It seems to happen mostly when Eclipse starts up with the groovy file editor the active editor, but I can't confirm that's the primary or even a consistent cause.
Foo.groovy
enum TEST_ENUM { TEST1, TEST2 } public class Foo { def bar }
Multiple markers at this line
- Groovy:Can't have an abstract method in a non-abstract class. The class 'TEST_ENUM' must be declared abstract or the method 'int compareTo(java.lang.String)'
must be implemented.- Groovy:Can't have an abstract method in a non-abstract class. The class 'TEST_ENUM' must be declared abstract or the method 'int compareTo(java.util.Calendar)'
must be implemented.
trying to recreate this, without much success. Tried restarting eclipse with just the editor containing that file open. I am a bit confused by the message mentioning 'Calendar' as there is nothing in that source which references calendar. Sometimes errors can get reported against the wrong files - if you are still having this issue is there some other type in the same project that is dealing with Calendar and Comparable?