PropertyMapIterator throws NoSuchElementException on last element

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 9
    • Affects Version/s: 8, 9
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: