Make ConcurrentHashMap.CollectionView a sealed hierarchy

XMLWordPrintable

    • Type: Sub-task
    • Resolution: Fixed
    • Priority: P4
    • 19
    • Affects Version/s: None
    • Component/s: 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.)

            Assignee:
            Jaikiran Pai
            Reporter:
            Stuart Marks
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: