[ 
https://issues.apache.org/jira/browse/GROOVY-11178?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Eric Milles resolved GROOVY-11178.
----------------------------------
    Fix Version/s: 5.0.0-alpha-3
       Resolution: Fixed

https://github.com/apache/groovy/commit/b779d3068652d6191d32f411a1d97f904ed0f19b

> JSR308 constructor call annotations not resolved or available
> -------------------------------------------------------------
>
>                 Key: GROOVY-11178
>                 URL: https://issues.apache.org/jira/browse/GROOVY-11178
>             Project: Groovy
>          Issue Type: Bug
>    Affects Versions: 5.0.0-alpha-2, 4.0.15
>            Reporter: Eric Milles
>            Assignee: Eric Milles
>            Priority: Major
>              Labels: annotations
>             Fix For: 5.0.0-alpha-3
>
>
> Consider the following:
> {code:groovy}
> import java.lang.annotation.*
> @Target(ElementType.TYPE_USE)
> public @interface A {
> }
> Object o = new @A Object()
> {code}
> 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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to