(coll) AbstractList.ListItr.add might corrupt iterator state if enclosing add throws

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 7
    • Affects Version/s: 7
    • Component/s: core-libs
    • b15
    • generic
    • generic
    • Not verified

      While following up on

      6529795: (coll) Iterator.remove() fails if next() threw NoSuchElementException

      it was noticed that AbstractList.ListItr.add(E) has a similar very small blemish.
      if enclosing add fails, then the iterator might be modified, possibly into an impossible
      state.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: