Issue Details (XML | Word | Printable)

Key: GROOVY-2156
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Alexandru Popescu
Reporter: Peter Ledbrook
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
groovy

Parameter annotations cannot be queried at runtime

Created: 30/Sep/07 08:32 AM   Updated: 23/Dec/07 12:25 PM   Resolved: 06/Oct/07 05:27 PM
Return to search
Component/s: None
Affects Version/s: 1.1-beta-3
Fix Version/s: 1.1-rc-1

Time Tracking:
Not Specified

File Attachments: 1. Zip Archive annotation-bug.zip (2 kB)


Testcase included: yes


 Description  « Hide

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



Alexandru Popescu added a comment - 06/Oct/07 05:27 PM

This should be fixed in r.8393.

./alex

.w( the_mindstorm )p.