[jira] [Resolved] (GROOVY-8825) CLONE - Conflict between @Generated and @Delegate

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Resolved] (GROOVY-8825) CLONE - Conflict between @Generated and @Delegate

Paul King (Jira)

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

Paul King resolved GROOVY-8825.
-------------------------------
    Fix Version/s: 3.0.0-rc-2
                   2.5.9
         Assignee: Paul King
       Resolution: Fixed

Proposed PR merged. Thanks for spotting the issue.

> CLONE - Conflict between @Generated and @Delegate
> -------------------------------------------------
>
>                 Key: GROOVY-8825
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8825
>             Project: Groovy
>          Issue Type: Bug
>    Affects Versions: 2.5.3
>            Reporter: François Guillot
>            Assignee: Paul King
>            Priority: Major
>             Fix For: 2.5.9, 3.0.0-rc-2
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> I cloned the issue to try to find a suitable test. There is now an extra guard which should prevent the problem in case I envisage.
> ORIGINAL BELOW:
> I get 
> java.lang.annotation.AnnotationFormatError: Duplicate annotation for class: interface groovy.transform.Generated: @groovy.transform.Generated()
> On a class with a field declared with @Delegate
>  
> Removing @Delegate works around the problem



--
This message was sent by Atlassian Jira
(v8.3.4#803005)