RFR: 8376423: Test javax/swing/plaf/metal/MetalUtils/bug6190373.java failed: ClassCastException: class java.lang.Character cannot be cast to class javax.swing.Painter
Phil Race
prr at openjdk.org
Tue Jan 27 04:56:17 UTC 2026
On Tue, 27 Jan 2026 04:23:33 GMT, Phil Race <prr at openjdk.org> wrote:
> AppContext is removed from Swing LAF state. Tests which require it are deleted.
src/java.desktop/share/classes/javax/swing/plaf/metal/DefaultMetalTheme.java line 156:
> 154: if (key != WINDOW_TITLE_FONT) {
> 155: Object boldMetal = null;
> 156: if (SwingAccessor.getLAFStateAccessor().lafStateIsInitialized()) {
I'm sceptical that we can ever get here without the L&F initialized, but for now I'd prefer to try to keep the same behaviour.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/29437#discussion_r2730191660
More information about the client-libs-dev
mailing list