RFR: 8283706: Add final or sealed modifier to appropriate javax.swing API classes

Sergey Bylokhov serb at openjdk.java.net
Wed Apr 6 05:28:59 UTC 2022


On Sat, 2 Apr 2022 23:21:03 GMT, Phil Race <prr at openjdk.org> wrote:

> Update Swing classes to use JEP 409 sealed and non-sealed modifiers and add the final modifier where appropriate.
> 
> jtreg tests and JCK API tests pass
> 
> CSR for review here : https://bugs.openjdk.java.net/browse/JDK-8284214

src/java.desktop/share/classes/javax/swing/GroupLayout.java line 2461:

> 2459:      */
> 2460:     public sealed class ParallelGroup extends Group
> 2461:          permits BaselineGroup {

The BaselineGroup class is private so not part of the public API, is it fine to mention the non-public class in the permits block for the public class?

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

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



More information about the client-libs-dev mailing list