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

Annotations are not working

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 1.6-beta-1
    • 1.6-beta-1
    • ast builder
    • None
    • Mac OS 10.5.2
      Java 1.5.0_13
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: