Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 54142 invoked from network); 21 Apr 2003 08:42:58 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 21 Apr 2003 08:42:58 -0000 Received: (qmail 6758 invoked by uid 97); 21 Apr 2003 08:45:03 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@nagoya.betaversion.org Received: (qmail 6751 invoked from network); 21 Apr 2003 08:45:03 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 21 Apr 2003 08:45:03 -0000 Received: (qmail 53628 invoked by uid 500); 21 Apr 2003 08:42:50 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 53617 invoked from network); 21 Apr 2003 08:42:50 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 21 Apr 2003 08:42:50 -0000 Received: (qmail 6732 invoked by uid 50); 21 Apr 2003 08:44:58 -0000 Date: 21 Apr 2003 08:44:58 -0000 Message-ID: <20030421084458.6731.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: commons-dev@jakarta.apache.org Cc: Subject: DO NOT REPLY [Bug 18068] - DefaultMapBag not Serializable X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . 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