commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 39538] - [collections] Support parametized classes with commons.collections.
Date Mon, 15 May 2006 16:34:45 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39538>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39538





------- Additional Comments From cp1965@ROGERS.com  2006-05-15 16:34 -------
(In reply to comment #3)
> Someone has already ported it.  There's a sourceforge project
> (http://collections15.sourceforge.net/) out there that does it.

Yes, someone has attempted to port the commons.collections but the projects 
seems dead.  The current source code has many coding errors.  The programmers 
simply replaced the type <E> everywhere without forethought.  That's wrong.  
There is a document named "generics-tutorial.pdf" available from sun.java.com 
website.  It explains in great detail how parametized classes should be code.
The project was done without good technical knowledge of Java 1.5 parametized 
classes.

THE TYPICAL ERROR:
class Set<E> {
    void add(E d) {...} // that's wrong!!!
}
- the method add should read
    void add(<? extends E> d) {...} // so any subclass of E is acceptable.

I don't see much motivation to pursue commons.collections15 which is a shame. 
It's one of the most important Jakarta library!

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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