RFR: 8283703: Add sealed modifier to java.awt.geom.Path2D

Brian Burkhalter bpb at openjdk.java.net
Wed Mar 30 20:55:36 UTC 2022


On Wed, 30 Mar 2022 20:05:31 GMT, Phil Race <prr at openjdk.org> 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.
> 
> Path2D can be sealed because no code outside the package can sub-class it directly.
> 
> However the extant subclasses need to be made non-sealed as they can be sub-classed.
> 
> jtreg tests and JCK API tests pass.
> 
> CSR here : https://bugs.openjdk.java.net/browse/JDK-8284031

Marked as reviewed by bpb (Reviewer).

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

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



More information about the client-libs-dev mailing list