<AWT Dev> RFR: 8227257: javax/swing/JFileChooser/4847375/bug4847375.java fails with AssertionError
Baesken, Matthias
matthias.baesken at sap.com
Fri Oct 18 12:37:44 UTC 2019
Hello, please review this small test related change .
Current status is that test bug4847375.java (which is Windows only) fails on our test machines .
Background is the following :
- we execute (almost?) always with assertions enabled ( -ea -esa )
- we have in our Windows setups some strange shellfolders that trigger the issue
java.lang.reflect.InvocationTargetException
at java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1367)
at java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1342)
at java.desktop/javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1480)
at bug4847375.main(bug4847375.java:53)
...
Caused by: java.lang.AssertionError
at java.desktop/sun.awt.shell.Win32ShellFolder2$4.call(Win32ShellFolder2.java:440)
at java.desktop/sun.awt.shell.Win32ShellFolder2$4.call(Win32ShellFolder2.java:438)
So I think it is probably the best to disable assertions for the test because the combination -ea/-esa + strange Shellfolder setup is not seen very often .
Bug/webrev :
https://bugs.openjdk.java.net/browse/JDK-8227257
http://cr.openjdk.java.net/~mbaesken/webrevs/8227257.0/
Thanks, Matthias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/awt-dev/attachments/20191018/22df59a9/attachment.html>
More information about the awt-dev
mailing list