generics support

View: New views
7 Messages — Rating Filter:   Alert me  

generics support

by Jochen Theodorou :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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/

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


RE: generics support

by Dierk König :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

cool!

congrats
Dierk

> -----Original Message-----
> From: Jochen Theodorou [mailto:blackdrag@...]
> Sent: Montag, 4. Juni 2007 18:27
> To: user@...; dev@...
> Subject: [groovy-user] generics support
>
>
> 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/
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


Re: generics support

by glaforge :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Well done :-)

On 6/4/07, Dierk Koenig <dierk.koenig@...> wrote:

> cool!
>
> congrats
> Dierk
>
> > -----Original Message-----
> > From: Jochen Theodorou [mailto:blackdrag@...]
> > Sent: Montag, 4. Juni 2007 18:27
> > To: user@...; dev@...
> > Subject: [groovy-user] generics support
> >
> >
> > 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/
> >
> > ---------------------------------------------------------------------
> > To unsubscribe from this list please visit:
> >
> >     http://xircles.codehaus.org/manage_email
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>


--
Guillaume Laforge
Groovy Project Manager
http://glaforge.free.fr/blog/groovy

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


Re: generics support

by Daniel.Sun :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Jochen,

Good job :)

Thanks,
Daniel.Sun
Jochen Theodorou wrote:
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/

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Re: generics support

by graemer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Great work Jochen!

Cheers

On 6/5/07, Daniel.Sun <realbluesun@...> wrote:

>
> Jochen,
>
> Good job :)
>
> Thanks,
> Daniel.Sun
>
> Jochen Theodorou wrote:
> >
> > 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/
> >
> > ---------------------------------------------------------------------
> > To unsubscribe from this list please visit:
> >
> >     http://xircles.codehaus.org/manage_email
> >
> >
> >
>
> --
> View this message in context: http://www.nabble.com/generics-support-tf3866282.html#a10965459
> Sent from the groovy - user mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>


--
Graeme Rocher
Grails Project Lead
http://grails.org

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


Re: generics support

by Jochen Theodorou :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Graeme Rocher schrieb:
> Great work Jochen!

will Grails now make use of it? List<Books> looks useful to Grails.

bye blackdrag

--
Jochen "blackdrag" Theodorou
Groovy Tech Lead (http://groovy.codehaus.org)
http://blackdragsview.blogspot.com/

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


Re: generics support

by graemer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 6/6/07, Jochen Theodorou <blackdrag@...> wrote:
> Graeme Rocher schrieb:
> > Great work Jochen!
>
> 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 mappings

Cheers
Graeme

>
> bye blackdrag
>
> --
> Jochen "blackdrag" Theodorou
> Groovy Tech Lead (http://groovy.codehaus.org)
> http://blackdragsview.blogspot.com/
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>


--
Graeme Rocher
Grails Project Lead
http://grails.org

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email