commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject RE: [collections] ... and generics
Date Thu, 13 Apr 2006 21:11:26 GMT
Quoting "Lazarte, Ivan" <>:

> 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.


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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message