RFR: 8378192: Remove AppContext from SwingUtilities2

Phil Race prr at openjdk.org
Wed Feb 18 19:29:59 UTC 2026


On Wed, 18 Feb 2026 19:19:48 GMT, Phil Race <prr at openjdk.org> wrote:

> Remove AppContext from SwingUtilities2

src/java.desktop/share/classes/sun/swing/SwingUtilities2.java line 1243:

> 1241:     }
> 1242: 
> 1243:     private static final Map<Object, FontRenderContext> cache = new HashMap<>();

This cache looks like it could grow without bounds but
(1) In fact the transforms are just the set of default transforms for graphics configs, so it is very limited
(2) Nothing changing here anyway.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/29798#discussion_r2824036612


More information about the client-libs-dev mailing list