RFR: 8284036: Make ConcurrentHashMap.CollectionView a sealed hierarchy
Doug Lea
dl at openjdk.java.net
Thu Apr 7 11:37:39 UTC 2022
On Mon, 4 Apr 2022 06:55:10 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:
> Can I please get a review of this change which now marks `CollectionView` as a `sealed` class with only `EntrySetView`, `KeySetView` and `ValuesView` as the sub-classes? This change corresponds to https://bugs.openjdk.java.net/browse/JDK-8284036.
>
> A CSR has also been drafted for this change https://bugs.openjdk.java.net/browse/JDK-8284272. As noted in the CSR, marking this class as `sealed` and marking `KeySetView` as `final` shouldn't have any impact in general and also in context of serialization/de-serialization.
>
> tier1, tier2, tier3 tests have been run successfully with this change.
OK. I don't have any objections to doing this.
-------------
PR: https://git.openjdk.java.net/jdk/pull/8085
More information about the core-libs-dev
mailing list