RFR: 8374340: FontRenderContext instance variables should be final

Phil Race prr at openjdk.org
Wed Dec 24 20:56:49 UTC 2025


On Wed, 24 Dec 2025 15:09:02 GMT, Daniel Gredler <dgredler at openjdk.org> wrote:

> Note: I'm not sure why these instance variables are marked `transient`, since `FontRenderContext` is not serializable. I've left it as-is, but if reviewers want `transient` removed, just let me know.

I noticed that when I looked yesterday. The only thing I could think of is that since the class is subclassable, it purposefully prevents anyone from creating a serializable subclass reliant on the superclass.
I'd prefer to leave it, as some investigation would be prudent and it really doesn't matter.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/28981#issuecomment-3690484362


More information about the client-libs-dev mailing list