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

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Sun Mar 29 02:00:28 UTC 2020


Looks fine.

On 3/28/20 7:31 am, Pankaj Bansal wrote:
> 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


-- 
Best regards, Sergey.


More information about the awt-dev mailing list