commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen Kestle <stephen.kes...@orionhealth.com>
Subject Re: [collections] VOTE: Collections-java5 direction ; notifying collections
Date Tue, 13 Mar 2007 01:05:21 GMT

> It may be that Java generics adds type safety for some.  However, if you're
> passing collections back and forth between 1.4 code and 1.5/1.6 code, you
> have all the potential problems of the un-typechecked world _plus_ the
> false sense of security that you're "safe".  In short, your library offers
> real type safety.  Please don't limit the "reboot" to the incomplete type
> safety offered by Java generics.  There is real value added here.
I'm unsure why people who use Java 5 only should pay a runtime penalty 
when it isn't needed.  If this issue concerns you, use 
java.utils.Collection.CheckedCollection.

However, if the "library offers real type safety" already, then it 
should continue to do so, or at least offer a decent workaround.


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


Mime
View raw message