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

List spec should state that unmodifiable lists implement RandomAccess

    XMLWordPrintable

Details

    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

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

              Dates

                Created:
                Updated:
                Resolved: