On Tue, 1 Oct 2024 21:46:21 GMT, Michael Strauß <mstra...@openjdk.org> wrote:
> Backgrounds and borders are comprised of immutable and final types. The > following types are marked with the `final` modifier: > > * Background > * BackgroundFill > * BackgroundImage > * BackgroundSize > * Border > * BorderWidths > > The following types are not marked with the `final` modifier: > > * BackgroundPosition > * BorderImage > * BorderStroke > * CornerRadii > > This is probably just an oversight, as there is no value in allowing a > subsection of these types to be extended. 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. ------------- PR Comment: https://git.openjdk.org/jfx/pull/1587#issuecomment-2387197329