Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6355327

Concurrent collection iterators should not throw ConcurrentModificationException

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b69
    • CPU:
      generic, x86
    • OS:
      generic, windows_xp
    • Verification:
      Verified

      Description

      Both the concurrent collection classes DelayQueue and PriorityBlockingQueue
      have iterators that will throw ConcurrentModificationException in the
      presence of concurrent modification. This is unreasonable.
      Concurrent collections should be concurrently iterable and modifyable.

      It appears that this is due to implementor laziness.
      A backing non-concurrent PriorityQueue is used, and delegating iteration
      to the PriorityQueue iterator leads naturally to ConcurrentModificationException.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              martin Martin Buchholz
              Reporter:
              martin Martin Buchholz
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: