You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2004/01/06 12:10:17 UTC

DO NOT REPLY [Bug 25920] New: - ConcurrentModificationException in IterateTag

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

ConcurrentModificationException in IterateTag

           Summary: ConcurrentModificationException in IterateTag
           Product: Struts
           Version: 1.1 Final
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Custom Tags
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: valdin@freenet.de


ConcurrentModificationException is thrown in line 401 of IterateTag.
I assume, that the reason is usage of removeAttribute() in line 403 instead
of iterator.remove()

            Object element = iterator.next();
            if (element == null) {
                pageContext.removeAttribute(id); // should be iterator.remove();
            } else {
                pageContext.setAttribute(id, element);
            }

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org