[
https://issues.apache.org/jira/browse/WICKET-6021?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14994712#comment-14994712
]
ASF subversion and git services commented on WICKET-6021:
---------------------------------------------------------
Commit 9f8f2f2f5f7df873061679c80edd151c94afdd38 in wicket's branch
refs/heads/master from [~dashorst]
[ https://git-wip-us.apache.org/repos/asf?p=wicket.git;h=9f8f2f2 ]
WICKET-6021: consistent iteration even after modifications
This commit fixes WICKET-6021 by implementing an improved iterator for
markupcontainer that is able to act on changes in the implementation of
the underlying data structure that stores the children without throwing
a ConcurrentModificationException.
> ConcurrentModificationException in MarkupContainer#iterator#next
> ----------------------------------------------------------------
>
> Key: WICKET-6021
> URL: https://issues.apache.org/jira/browse/WICKET-6021
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 7.1.0
> Reporter: Martin Grigorov
> Assignee: Emond Papegaaij
> Fix For: 7.2.0, 8.0.0-M1
>
>
> I'm upgrading Apache Isis to Wicket 7.1.0 (from 6.20) and I face the
> following problem:
> java.util.ConcurrentModificationException
> at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:901)
> at java.util.ArrayList$Itr.next(ArrayList.java:851)
> at org.apache.wicket.MarkupContainer$1.next(MarkupContainer.java:553)
> at org.apache.wicket.MarkupContainer$1.next(MarkupContainer.java:522)
> at org.apache.wicket.util.visit.Visits.visitChildren(Visits.java:134)
> at org.apache.wicket.util.visit.Visits.visitChildren(Visits.java:162)
> at org.apache.wicket.util.visit.Visits.visitChildren(Visits.java:162)
> at org.apache.wicket.util.visit.Visits.visitChildren(Visits.java:123)
> at org.apache.wicket.util.visit.Visits.visitChildren(Visits.java:192)
> at
> org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:891)
> at
> org.apache.wicket.MarkupContainer.internalInitialize(MarkupContainer.java:995)
> at org.apache.wicket.Page.internalPrepareForRender(Page.java:240)
> at org.apache.wicket.Component.render(Component.java:2304)
> at org.apache.wicket.Page.renderPage(Page.java:1018)
> I think it is caused by the changes in WICKET-5983
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)