tags:

views:

49

answers:

1

I am looking for how the methods like ArrayList#sort(Closure) are implemented in Groovy. I've downloaded Groovy's source in a zip (http://groovy.codehaus.org/Building+Groovy+from+Source), but I can't find any file containing the source of extension methods to ArrayList. Does anyone know where these Groovy extensions for Java's collection API are located?

+1  A: 

Take a look at the sort methods of org.codehaus.groovy.runtime.DefaultGroovyMethods class.

Csaba_H
Nice! Quite an obscure place. Thanks for pointing out.
Buu Nguyen