RFR: 8339603: Seal the class hierarchy of Node, Camera, LightBase, Shape, Shape3D [v3]
Nir Lisker
nlisker at openjdk.org
Tue Oct 8 04:39:04 UTC 2024
On Tue, 8 Oct 2024 04:25:53 GMT, Michael Strauß <mstrauss at openjdk.org> wrote:
> > If this goes forward, please seal `Material` as well.
>
> If we seal `Material`, we should probably also seal `Paint`. What do you think?
I don't see why they are related, but if `Paint` can't be subclassed then I don't see a reason not to seal it. I can envision possibilities to create new paints, like other types of gradients. There's nothing inherently stopping that except for access to methods like platform paint.
-------------
PR Comment: https://git.openjdk.org/jfx/pull/1556#issuecomment-2398814928
More information about the openjfx-dev
mailing list