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

improve iterating a list to fail fast in a children binding

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Normal
    • Resolution: Done
    • Affects Version/s: 8.6.0
    • Fix Version/s: 8.6.1
    • Component/s: Databind 2
    • Security Level: Jimmy
    • Labels:
      None
    • gh.sprint.customfield.default.name:
      ZK 8.6.1 S1

      Description

      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)

        Attachments

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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                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