unmodifiable List iterator() implementations should not be ListIterators

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 11
    • Affects Version/s: None
    • Component/s: core-libs
    • None

        The unmodifiable List implementations (in ImmutableCollections.java) have a ListItr implementation, instances of which are returned by both the iterator() and listIterator() methods. If created by the iterator() call, the implementation should defend against it being used as a ListIterator. See Hashtable.Enumerator for an example of a single class that implements multiple roles.

              Assignee:
              Stuart Marks
              Reporter:
              Stuart Marks
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: