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

List spec should state that unmodifiable lists implement RandomAccess

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 15
    • Component/s: core-libs

      Description

      The section "Unmodifiable Lists" of the List class specification describes the required characteristics of the List instances returned by several APIs. The characteristics omit mention of the RandomAccess interface. Such lists should be specified to implement RandomAccess. The implementations in fact do implement RandomAccess, so this is bringing the specification in line with the implementation.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: