On Tue, 1 Oct 2024 23:04:40 GMT, Michael Strauß <mstra...@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. I agree that this use case should not be a consideration. As noted, this is an incompatible change, but we have a precedent for doing this for similar classes when we made the Color class final in JDK 8 with [JDK-8118119](https://bugs.openjdk.org/browse/JDK-8118119). ------------- PR Comment: https://git.openjdk.org/jfx/pull/1587#issuecomment-2388415296