Clarifiy the specification of PrimitiveIterator.forEachRemaining

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P3
    • 17
    • Affects Version/s: 17
    • Component/s: core-libs

      Iterator.forEachRemaining specifies that:

           * <p>
           * Subsequent behavior of an iterator is unspecified if the action throws an
           * exception.

      The primitive specializations in PrimitiveIterator derive from that same behaviour. However, they do not explicitly state that. This may mislead developers into thinking the specialized forEachRemaining methods behave differently.

            Assignee:
            Paul Sandoz
            Reporter:
            Paul Sandoz
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: