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=22369>. 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=22369 TelnetAppender.SocketHandler.send removes elements in Vector while iterating Summary: TelnetAppender.SocketHandler.send removes elements in Vector while iterating Product: Log4j Version: 1.3alpha Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: Appender AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] This fragment modifies the writers Vector while walking an enumeration on the Vector: if (writer.checkError()) { // The client has closed the connection, remove it from our list: connections.remove(sock); writers.remove(writer); } If it was an JDK 1.2 iteration, the call to next might have thrown an exception. I think the behavior is undefined for Enumeration. Any modification to writers should occur outside the loop, at least for clarity. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]