<AWT Dev> [15] RFR JDK-8241791: [TESTBUG] Test failing with exception "java.lang.UnsupportedOperationException"

Pankaj Bansal pankaj.b.bansal at oracle.com
Sat Mar 28 14:31:33 UTC 2020


Hi All,

Please review the following test only fix for jdk15.


Bug:

https://bugs.openjdk.java.net/browse/JDK-8241791

webrev:

http://cr.openjdk.java.net/~pbansal/8241791/webrev00/ 
<http://cr.openjdk.java.net/%7Epbansal/8241791/webrev00/>

Issue:

The testcase fail with exception 
"java.lang.UnsupportedOperationException : Caused by: 
java.lang.UnsupportedOperationException: The system tray is not 
supported on the current platform" on Ubuntu 18.04.

Cause:

The test cases are failing as Ubuntu 18.04 does not support SystemTray 
and the test is not handling the case properly. It test tries to use 
SystemTray and throws this exception.

Fix:

Added proper handling in test for case when the system does not support 
SystemTray. The test passes on Windows, Linux and Mac.

Regards,
Pankaj Bansal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/awt-dev/attachments/20200328/8a2b7dde/attachment.htm>


More information about the awt-dev mailing list