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

ConcurrentHashMap's keySet, values toArray can throw IndexOutOfBoundsException

XMLWordPrintable

      From Doug Lea:

      ConcurrentHashMap.keySet().toArray and
      ConcurrentHashMap.values().toArray can throw IndexOutOfBoundsException.

      If these methods are called while a ConcurrentHashMap
      is concurrently growing, they may underallocate array space and
      attempt to add more elements than allocated.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: