DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18068>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18068
DefaultMapBag not Serializable
------- Additional Comments From Maarten.Coene@qmedit.com 2003-04-21 08:44 -------
I would like the approach similar to the Java Collections approach.
Take for instance ArrayList. This class is Serializable only if the elements
it contains are Serializable.
Why can't we do the same for DefaultMapBag: make this class Serializable only
if the Map it contains is Serializable? This would make HashBag and TreeBag
Serializable by default (assuming they contain only Serializable objects)
since they use HashMap (implements Serializable) and TreeMap (implements
Serializable) as a Map implementation.
Using this approach, I think the only thing that has to be done is to make
DefaultMapBag implements Serializable. No changes has to be made to HashBag,
TreeBag (and I don't think many external implementations has to be changed
either).
regards,
Maarten Coene
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
|