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

2022-03-28 Thread Joe Darcy
On Tue, 29 Mar 2022 04:16:06 GMT, Prasanta Sadhukhan 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

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

2022-03-28 Thread Prasanta Sadhukhan
On Mon, 28 Mar 2022 16:30:50 GMT, Phil Race 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? - Marked as re

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

2022-03-28 Thread Phil Race
On Mon, 28 Mar 2022 16:30:50 GMT, Phil Race wrote: > JDK 17 delivered JEP 409: Sealed Classes : https://openjdk.java.net/jeps/409 > In essence this JEP allows a class to limit which classes can subclass it. > If a class has no subclasses and cannot be subclassed outside the JDK it can > also be

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

2022-03-28 Thread Sergey Bylokhov
On Mon, 28 Mar 2022 16:30:50 GMT, Phil Race wrote: > JDK 17 delivered JEP 409: Sealed Classes : https://openjdk.java.net/jeps/409 > In essence this JEP allows a class to limit which classes can subclass it. > If a class has no subclasses and cannot be subclassed outside the JDK it can > also be

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

2022-03-28 Thread Joe Darcy
On Mon, 28 Mar 2022 16:30:50 GMT, Phil Race wrote: > JDK 17 delivered JEP 409: Sealed Classes : https://openjdk.java.net/jeps/409 > In essence this JEP allows a class to limit which classes can subclass it. > If a class has no subclasses and cannot be subclassed outside the JDK it can > also be

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

2022-03-28 Thread Phil Race
On Mon, 28 Mar 2022 16:30:50 GMT, Phil Race wrote: > JDK 17 delivered JEP 409: Sealed Classes : https://openjdk.java.net/jeps/409 > In essence this JEP allows a class to limit which classes can subclass it. > If a class has no subclasses and cannot be subclassed outside the JDK it can > also be

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

2022-03-28 Thread Rémi Forax
On Mon, 28 Mar 2022 20:39:26 GMT, Sergey Bylokhov wrote: >> JDK 17 delivered JEP 409: Sealed Classes : https://openjdk.java.net/jeps/409 >> In essence this JEP allows a class to limit which classes can subclass it. >> If a class has no subclasses and cannot be subclassed outside the JDK it can >

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

2022-03-28 Thread Sergey Bylokhov
On Mon, 28 Mar 2022 16:30:50 GMT, Phil Race wrote: > JDK 17 delivered JEP 409: Sealed Classes : https://openjdk.java.net/jeps/409 > In essence this JEP allows a class to limit which classes can subclass it. > If a class has no subclasses and cannot be subclassed outside the JDK it can > also be

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

2022-03-28 Thread Alexey Ivanov
On Mon, 28 Mar 2022 16:30:50 GMT, Phil Race wrote: > JDK 17 delivered JEP 409: Sealed Classes : https://openjdk.java.net/jeps/409 > In essence this JEP allows a class to limit which classes can subclass it. > If a class has no subclasses and cannot be subclassed outside the JDK it can > also be

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

2022-03-28 Thread Joe Darcy
On Mon, 28 Mar 2022 16:30:50 GMT, Phil Race wrote: > JDK 17 delivered JEP 409: Sealed Classes : https://openjdk.java.net/jeps/409 > In essence this JEP allows a class to limit which classes can subclass it. > If a class has no subclasses and cannot be subclassed outside the JDK it can > also be

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

2022-03-28 Thread Phil Race
JDK 17 delivered JEP 409: Sealed Classes : https://openjdk.java.net/jeps/409 In essence this JEP allows a class to limit which classes can subclass it. If a class has no subclasses and cannot be subclassed outside the JDK it can also be made final. Suitable classes across the JDK are being retro-f