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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: