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

improve iterating a list to fail fast in a children binding

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Normal Normal
    • 8.6.1
    • 8.6.0
    • Databind 2
    • Security Level: Jimmy
    • None
    • ZK 8.6.1 S1

      Steps to Reproduce

      1. run the attached example
      2. compare clicking "index" button and other 2 buttons (for, iterator)

      Current Result

      • "index" doesn't always cause an exception
      • for & iterator always throws ConcurrentModificationException

      Expected Result

      implement with a loop that failed fast is better to expose the root cause, so that application developers can fix their problem eariler.

      Debug Information

      • at at org.zkoss.bind.impl.LoadChildrenBindingImpl.load(LoadChildrenBindingImpl.java:121)

        1. 4184.zul
          0.5 kB
        2. ZK4184VM.java
          2 kB

            rudyhuang rudyhuang
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Time Spent - 4 hours Remaining Estimate - 4 hours
                4h
                Logged:
                Time Spent - 4 hours Remaining Estimate - 4 hours
                4h