On Tue, 29 Mar 2022 04:16:06 GMT, Prasanta Sadhukhan <psadhuk...@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

Reply via email to