RFR: 8341372: BackgroundPosition, BorderImage, BorderStroke, CornerRadii should be final
Michael Strauß
mstrauss at openjdk.org
Tue Oct 1 23:07:38 UTC 2024
On Tue, 1 Oct 2024 22:29:39 GMT, Andy Goryachev <angorya at openjdk.org> wrote:
> There might be a very narrow use case (like debugging) when developer might need to extend to supply a custom `toString()` or some other method.
>
> From a high level design standpoint, I do agree with making these classes final.
Maybe, but that's not a sufficient reason to allow subclassing, as the same could be said for all cases of encapsuluation and inheritance control. Alternatives are:
1) Use the debugger to mark objects
2) Use a tool to change method definitions at runtime
3) Download OpenJFX and build it locally with the required changes
-------------
PR Comment: https://git.openjdk.org/jfx/pull/1587#issuecomment-2387234029
More information about the openjfx-dev
mailing list