<Swing Dev> RFR: 8198400: Test javax/swing/SwingUtilities/6797139/bug6797139.java fails in mach5
Prasanta Sadhukhan
psadhukhan at openjdk.java.net
Sun Oct 18 15:58:07 UTC 2020
On Sun, 18 Oct 2020 04:31:51 GMT, Phil Race <prr at openjdk.org> wrote:
>> It does not look like the test uses any API which required the headful system, none of them throw a headless exception.
>
> if you run it locally with -Djava.awt.headless=true what happens ?
> And in the bug report I see
> Caused by: java.lang.NullPointerException
> at java.desktop/javax.swing.plaf.basic.LazyActionMap.installLazyActionMap(LazyActionMap.java:64)
>
> So installUI failed which is why there's no componentUI but why did we get this NPE that started it ?
Running -Djava.awt.headless=true passes locally.
I tried running on mach5 in headless configuration also and it passes even on running several iterations. Link in JBS.
It seems last time it gets NPE when executing UIManager.getLookAndFeelDefaults().put(defaultsKey, map); which indicate
getLookAndFeelDefaults() returns null. But there are many instances in jdk swing code where no null check is done for
this getLookAndFeelDefaults() call and it is working fine.
-------------
PR: https://git.openjdk.java.net/jdk/pull/719
More information about the swing-dev
mailing list