Skip to content

Groovy-eclipse - confused by annotations on enum values #278

@simonmarshall

Description

@simonmarshall

If i place an annotation on an enum value, it doesn't work. It doesn't identify the annotation as a syntax error, but it does mis-highlight it and refuse to import the annotation class (if that is necessary). The same code (when ported) works fine in Java.

Here's how I can reproduce it:

Class annotations = [@enumsgroovy.A(value=C)]
Field annotations = []

such that it has not found the annotation on E.C.

src.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions