groovy

Parameter annotations cannot be queried at runtime

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.1-beta-3
  • Fix Version/s: 1.1-rc-1
  • Component/s: None
  • Labels:
    None
  • Testcase included:
    yes
  • Number of attachments :
    1

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 ).

Activity

Hide
Alexandru Popescu added a comment -

This should be fixed in r.8393.

./alex

.w( the_mindstorm )p.

Show
Alexandru Popescu added a comment - This should be fixed in r.8393. ./alex – .w( the_mindstorm )p.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: