RFR: 8327401: Some jtreg tests fail on Wayland without any tracking bug [v3]
Sergey Bylokhov
serb at openjdk.org
Wed Sep 4 18:52:26 UTC 2024
On Wed, 22 May 2024 20:44:54 GMT, Phil Race <prr at openjdk.org> wrote:
>> test/jdk/java/awt/Paint/ListRepaint.java line 40:
>>
>>> 38: static Frame frame;
>>> 39:
>>> 40: public static void main(final String[] args) throws Exception {
>>
>> It is critical to call AWT code on EDT in this test, otherwise it may fail with:
>>
>>> java.lang.NullPointerException: Cannot read field "x" because "this.prevFocusRect" is null
>> at java.desktop/sun.awt.X11.XListPeer$ListPainter.paintFocus(XListPeer.java:1976)
>> at java.desktop/sun.awt.X11.XListPeer$ListPainter.paint(XListPeer.java:1830)
>> at java.desktop/sun.awt.X11.XListPeer.repaint(XListPeer.java:389)
>> at java.desktop/sun.awt.X11.XListPeer.repaint(XListPeer.java:364)
>> at java.desktop/sun.awt.X11.XListPeer.repaint(XListPeer.java:360)
>> at java.desktop/sun.awt.X11.XListPeer.select(XListPeer.java:1214)
>> at java.desktop/java.awt.List.select(List.java:598)
>> at ListRepaint.test(ListRepaint.java:73)
>> at ListRepaint.main(ListRepaint.java:51)
>> at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
>> at java.base/java.lang.reflect.Method.invoke(Method.java:580)
>> at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
>> at java.base/java.lang.Thread.run(Thread.java:1575)
>
> I'm not sure that this should happen, (implemenation bug?) but it is outside the scope of the test updates to fix.
this looks like a product bug.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/19339#discussion_r1744270136
More information about the client-libs-dev
mailing list