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=33791>. 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=33791 Summary: PriorityBuffer iterator does not remove elements properly Product: Commons Version: 3.1 Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P2 Component: Collections AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] The following code snippet: System.out.println("----------"); PriorityBuffer s = new PriorityBuffer(); s.add(new Integer(1)); s.add(new Integer(2)); s.add(new Integer(3)); for (Iterator it = s.iterator(); it.hasNext(); s.remove() ) System.out.println(it.next()); System.out.println("----------"); Prints this: ---------- 1 3 ---------- Element 2 is lost, contrary to javadoc of java.util.Iterator -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
