Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.3.10, 2.4.1
-
None
-
None
-
Windows 7
First seen in Eclipse Luna (which also doesn't syntax highlight it well)
Description
When I annotate the final enum value in an enum, the enum value is no longer part of the enum, eg, running this via GroovyShell throws MissingPropertyException on the last line:
@Target([ElementType.FIELD]) @interface Fooann { } enum Foonum { @Fooann X, @Fooann // all is well if either (a) this annotation is removed, Y // or (b) this value has a trailing comma } class Bar { Foonum foonum } println Foonum.X println Foonum.Y
Attachments
Attachments
Issue Links
- relates to
-
GROOVY-6634 Annotated enum constants breaks enum
- Closed