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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 18
    • 18
    • core-libs
    • None

      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.

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

              Created:
              Updated:
              Resolved: