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

SequencedMap view method specification and implementation adjustments

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 21
    • 21
    • core-libs

    Description

      Observed that SequencedMap : SequencedXXX default methods implementation requirements not correctly matching the behavior :

      For example :
      “Implementation Requirements:
      The implementation in this interface returns a SequencedSet implementation that delegates all operations either to this map or to this map's Map.keySet(), except for its reversed method, which instead returns the result of calling sequencedKeySet on this map's reverse-ordered view.
       
      Use case – invoking the “add” on the returned SequencedSet
      Expected – invocation of “add” method on instance returned by Map.keySet().
      Actual - java.lang.UnsupportedOperationException

      Attachments

        Issue Links

          Activity

            People

              smarks Stuart Marks
              kganapureddy Krushnareddy Ganapureddy
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: