RFR: 8339603: Seal the class hierarchy of Node, Camera, LightBase, Shape, Shape3D

Michael Strauß mstrauss at openjdk.org
Fri Sep 6 15:50:11 UTC 2024


On Fri, 6 Sep 2024 15:41:45 GMT, Andy Goryachev <angorya at openjdk.org> wrote:

> > The fact that you can't extend `Node` is a system invariant
> 
> But I **can**, and the code provided above runs with no exception - in either `init()` or `start()`, making this change a breaking one.
> 
> Whether such code is meaningful is another story.
> 
> I would vote against this change.

But you just proved that you can violate a system invariant. The existing code tries to detect some violations and alerts you that extending Node is not supported by JavaFX.

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

PR Comment: https://git.openjdk.org/jfx/pull/1556#issuecomment-2334345965


More information about the openjfx-dev mailing list