Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 70784 invoked from network); 19 Sep 2003 20:35:17 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 19 Sep 2003 20:35:17 -0000 Received: (qmail 82613 invoked by uid 500); 19 Sep 2003 20:34:56 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 82541 invoked by uid 500); 19 Sep 2003 20:34:56 -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 82494 invoked from network); 19 Sep 2003 20:34:55 -0000 Received: from unknown (HELO exchange.sun.com) (192.18.33.10) by daedalus.apache.org with SMTP; 19 Sep 2003 20:34:55 -0000 Received: (qmail 18782 invoked by uid 50); 19 Sep 2003 20:37:54 -0000 Date: 19 Sep 2003 20:37:54 -0000 Message-ID: <20030919203754.18781.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: commons-dev@jakarta.apache.org Cc: Subject: DO NOT REPLY [Bug 23201] - [collections] TestObservedBag and TestObservedSet fail under Java 1.3.1 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.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=23201 [collections] TestObservedBag and TestObservedSet fail under Java 1.3.1 ------- Additional Comments From janekdb@yahoo.co.uk 2003-09-19 20:37 ------- I looked into this a (tiny) bit and discovered that the fault is related to an assumption made in ObservedTestHelper.doTestRemoveIterated(ObservedFactory factory) about the order of elements returned by the iterator: coll.addAll(SIX_SEVEN_LIST); LISTENER.preEvent = null; LISTENER.postEvent = null; Assert.assertEquals(2, coll.size()); Iterator it = coll.iterator(); it.next(); it.next(); it.remove(); Assert.assertEquals(1, coll.size()); Here the last element of the collection is removed however the order the elements returned by the iterator is different between JDK 1.3.1 and JDK 1.4.1. The order by type is show here: 1.3.1 1.4.1 ObservedBag 7, 6 6, 7 ObservedBuffer 6, 7 6, 7 ObservedCollection 6, 7 6, 7 ObservedList 6, 7 6, 7 ObservedSet 7, 6 6, 7 --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org