Backwards compatibility question (FontRenderContext)
Daniel Gredler
djgredler at gmail.com
Mon Dec 22 15:37:11 UTC 2025
Hi guys,
The `FontRenderContext` class does not have any setters for the data which
it carries, so from a public API perspective it is immutable. However, the
private instance variables are not declared final. I was thinking about
raising a small PR to make the instance variables final, to more clearly
indicate the immutability of the class. Is this considered a
backwards-compatible change? Or is it considered non-backwards-compatible,
since users can technically use reflection to fiddle with the class
internals (and since final will soon more definitely mean final)?
Take care,
Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/client-libs-dev/attachments/20251222/659491f2/attachment.htm>
More information about the client-libs-dev
mailing list