commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antra...@caret.cam.ac.uk
Subject RE: [collections] ... and generics
Date Thu, 13 Apr 2006 21:11:26 GMT
Quoting "Lazarte, Ivan" <ivan@away.com>:

> I was wondering the same thing.  Even though supposedly casting has a cost of
> close to 0 in modern JVM's this is still a desirable feature to me in order
> to enforce tight api design.
>
> Please answer anyone who knows! :)

NB that the casts are still occuring at runtime, since "Java 5" generics are
actually just a compile-time feature. Agreed having a visible contract will lead
to improved design however.

Antranig.

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message