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

Concurrent collection iterators should not throw ConcurrentModificationException

XMLWordPrintable

    • b69
    • generic, x86
    • generic, windows_xp
    • Verified

      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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: