Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-2714

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 7.0.5
    • Clustering, Components
    • None
    • Environment with serializable sessions

      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

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

              Created:
              Updated: