You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by bu...@apache.org on 2004/12/20 12:39:00 UTC

DO NOT REPLY [Bug 22369] - TelnetAppender.SocketHandler.send removes elements in Vector while iterating

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=22369>.
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=22369





------- Additional Comments From ceki@apache.org  2004-12-20 12:39 -------

Log4j 1.3 requires JDK 1.2. so enumerations could be replaced by iterators. However, 
in this particular case, I think a simple for(int i = 0; i < writers.size(); i++) 
iteration would avoid building an Enumeration object for each event.

If a connection needs to be removed as a result of a failure, then that could be 
done outside the loop as you suggested. 

-- 
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: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org