Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8283414 Update java.base to use sealed classes (umbrella)
  3. JDK-8284036

Make ConcurrentHashMap.CollectionView a sealed hierarchy

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: P4 P4
    • 19
    • None
    • core-libs
    • None

      ConcurrentHashMap.CollectionView is the root of a small class hierarchy with subclasses KeySetView, ValuesView, and EntrySetView. All are serializable, and none are publicly subclassable. CollectionView could be made a sealed class that permits those specific subclasses, and KeySetView in turn could be made final. (ValuesView and EntrySetView are already final.)

            jpai Jaikiran Pai
            smarks Stuart Marks
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: