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

ListIterator should have defaults for structural modification methods

    XMLWordPrintable

Details

    • Enhancement
    • Status: Open
    • P4
    • Resolution: Unresolved
    • 9
    • None
    • core-libs

    Description

      Iterator.remove was updated to become a default method, whose default implementation throws UnsupportedOperationException.

      It was an oversight that ListIterator methods were not updated at the same time.

      The methods ListIterator.remove/set/add should be updated to become default methods, whose default implementation throws UnsupportedOperationException.

      Attachments

        Activity

          People

            Unassigned Unassigned
            psandoz Paul Sandoz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: