Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-8825

CLONE - Conflict between @Generated and @Delegate

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.5.3
    • 2.5.9, 3.0.0-rc-2
    • None
    • None

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              paulk Paul King
              facewindu François Guillot
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m