<AWT Dev> Review request for 8162102: New access restriction awt.robot.gtk: what to fix?

Ambarish Rapte ambarish.rapte at oracle.com
Wed Sep 14 16:56:46 UTC 2016


Hi,

                Please review this fix for JDK9,

                Webrev: http://cr.openjdk.java.net/~arapte/8162102/webrev.00/

                Bug: https://bugs.openjdk.java.net/browse/JDK-8162102

 

Issue:

                "java/awt/AppContext/ApplicationThreadsStop/ApplicationThreadsStop.java"  Test fails with 

Exception java.security.AccessControlException: access denied ("java.util.PropertyPermission" "awt.robot.gtk" "read")

All tests using security policy would fail with same exception.

 

Cause:

                Issue occurs when only a security policy is used.

                System property  awt.robot.gtk  accessing was added as fix of https://bugs.openjdk.java.net/browse/JDK-8150954

Discussion mail: http://mail.openjdk.java.net/pipermail/awt-dev/2016-April/010999.html

 

Fix:

                Added the getBoolean call inside a privileged block.

                

 

Regards,

Ambarish

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/awt-dev/attachments/20160914/3809752d/attachment.html>


More information about the awt-dev mailing list