chrisbrown (2) [Avatar] Offline
#1
As a followup to my first post on Spread-Dot, I am also a loss to explain why this works:
println String.class.methods.name

and this works:
println String.class.methods*.name

but this does not:
println String.class.methods*.getName()
Mittie (397) [Avatar] Offline
#2
Re: Spread-dot 2
Hi Chris,

there is probably a JIRA issue for this. If not - please add one if the issue isn't fixed in Groovy-1.1-RC3. The issue was with inconsistent handling of Lists vs. Arrays (Class.getMethods() returns an array of Method objects rather than a List).
All this is from the top of my head, so I may be wrong...


Thanks for posting
Dierk