Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
5.0.0-alpha-2, 4.0.15
-
None
Description
Consider the following:
import java.lang.annotation.* @Target(ElementType.TYPE_USE) public @interface A { } Object o = new @A Object()
The annotation @A is added to the AST into the Object type's annotations. However, once type is resolved, the annotations come from the redirect and so this annotation is left unresolved and unavailable.
Attachments
Issue Links
- is related to
-
GROOVY-8226 JSR308 initial plumbing tweaks
- Closed
-
GROOVY-8228 JSR308 grammar changes
- Closed
-
GROOVY-9155 JSR308 annotation attributes not being validated
- Closed
-
GROOVY-8225 Groovy support for JSR 308/JEP 104 (Annotations in more places)
- Closed