AbstractComponent: ConcurrentModification exception while processing sessionDidActivate() in certain cases.

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Normal
    • None
    • Affects Version/s: 7.0.5
    • Component/s: Clustering, Components
    • None
    • Environment:

      Environment with serializable sessions

    • None

      Hi,

      it seems that in certain cases the event listener rewireing from SelectorComposer.didActivate() causes ConcurrentModificationExceptions in https://github.com/zkoss/zk/blob/master/zk/src/org/zkoss/zk/ui/AbstractComponent.java#L2554

      The iteration on the <List<EventListenerInfo>> two lines above is already encapsulated in a CollectionsX.comodifiableIterator(), but the iteration on List<EventListenerInfo> itself had no iteration.

      The attached patch fixes it for me...

      Thanks & Bye,
      Chris

            Assignee:
            Unassigned
            Reporter:
            christian
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: