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
2009-09-14 07:14:17
Nice! Quite an obscure place. Thanks for pointing out.
Buu Nguyen
2009-09-14 08:50:56