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

PropertyMapIterator throws NoSuchElementException on last element

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: