Groovy Adds Support for Generics
Graeme Rocher, Jochen Theodorou June 9th, 2007
From the Groovy Mailing List:
Hi all,
the compiler is now able to support most of the generics declaration
features. It is now possible to use generics in methods, fields and
class definitions using wildcards, lower and upper bounds. The
implementation might have several bugs, I tried to find them, but of
course I can’t foresee all cases.Things that are currently missing:
* covariant return types (might come soon)
* compile time checks for correct usage of the number of parameters
(might not yet be implemented as it requires java5 features)have fun
bye blackdrag
–
Jochen “blackdrag” Theodorou
Groovy Tech Lead (http://groovy.codehaus.org)
http://blackdragsview.blogspot.com/
Generics support in will be useful in Grails, according to Graeme Rocher:
>
> will Grails now make use of it? List<Books> looks useful to Grails.Yeh definitely for those who want to use EJB3 style mappings instead
of GORM style mappingsCheers
Graeme
Tags: Graeme Rocher, Jochen Theodorou
About