RFR: 8283700: Add final or sealed modifier to appropriate java.awt API classes

Joe Darcy darcy at openjdk.java.net
Tue Mar 29 04:24:43 UTC 2022


On Tue, 29 Mar 2022 04:16:06 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

> > Suitable classes across the JDK are being retro-fitted to be sealed
> 
> How does this "suitability" check done? Are these exhaustive or more awt classes will be added? Do we need to do the same for swing classes too?

I wrote an annotation processor to look for candidates to make sealed (public classes with no public or protected constructors and at least one package access constructor). Phil has filed bugs for swing (JDK-8283706) and other client areas.

-------------

PR: https://git.openjdk.java.net/jdk/pull/7998



More information about the client-libs-dev mailing list