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

 

Reply via email to