JDK-8284036 : Make ConcurrentHashMap.CollectionView a sealed hierarchy
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.util.concurrent
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2022-03-30
  • Updated: 2022-04-04
Related Reports
CSR :  
Description
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.)
Comments
A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk/pull/8085 Date: 2022-04-04 06:55:10 +0000
04-04-2022