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

Parameter annotations cannot be queried at runtime

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1-beta-3
    • 1.1-rc-1
    • None
    • None

    Description

      This problem occurs with the Groovy-1.1-beta-3-SNAPSHOT that comes with Grails 0.6. When I use reflection to query the parameter annotations of a class's method, a call to 'value()' on any of those annotations causes a java.lang.annotation.IncompleteAnnotationException. Note that this does not happen with annotations declared on a method.

      The attached zip file contains a library and a Groovy script. Simply run the script with the library in the classpath and you should see the error (unless it's been fixed already ).

      Attachments

        1. annotation-bug.zip
          2 kB
          Peter Ledbrook

        Activity

          People

            alexpopescu Alexandru Popescu
            pledbrook Peter Ledbrook
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: