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

Annotations are not working

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.6-beta-1
    • Fix Version/s: 1.6-beta-1
    • Component/s: ast builder
    • Labels:
      None
    • Environment:
      Mac OS 10.5.2
      Java 1.5.0_13
    • Flags:
      Patch

      Description

      Due to a bug in the compiler, annotations on Groovy code with retention RUNTIME are treated like annotations with retention CLASS, i.e. they make it into the class file but are not accessible at runtime. Main problem is that retention information in class AnnotationNode is not set correctly. Attached is a patch that fixes this problem and adds a regression test.

      For additional information see:
      http://www.nabble.com/defining-the-runtime-visibility-of-an-annotation-definition-to15883658.html

        Attachments

          Activity

            People

            • Assignee:
              blackdrag Jochen Theodorou
              Reporter:
              pniederw Peter Niederwieser
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: