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

PropertyMapIterator throws NoSuchElementException on last element

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 8, 9
    • core-libs
    • None
    • b153
    • generic
    • generic

      As reported on nashorn-dev, PropertyMap.PropertyMapIterator always tries to prefetch the next (after current) element in next() and therefore throws a NoSuchElementException when returning the last element.

      http://mail.openjdk.java.net/pipermail/nashorn-dev/2016-December/006706.html

      It seems like this iterator is not currently used in Nashorn.

            hannesw Hannes Wallnoefer
            hannesw Hannes Wallnoefer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: