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

java.util.ImmutableCollections$Map1 and MapN should not be @ValueBased

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 18
    • Fix Version/s: 18
    • Component/s: core-libs
    • Labels:
      None

      Description

      The superclass AbstractMap of java.util.ImmutableCollections$Map1 and MapN is not stateless and contains `keySet` and `values`. They should not be annotated with `@ValueBased` and they can't be migrated to a primitive class.

      The candidate list in https://openjdk.java.net/jeps/390 may need to be updated.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rriggs Roger Riggs
              Reporter:
              mchung Mandy Chung
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: