view patches/mark_sun_toolkit_privileged_code.patch @ 2149:b0f229f276be

Added patch that fixes AccessControlContext which was thrown while working with Color class in a PropertyEditor
author ptisnovs
date Fri, 15 Apr 2011 15:21:25 +0200
parents
children
line wrap: on
line source

--- openjdk/jdk/src/share/classes/sun/awt/SunToolkit.orig.java	2011-03-11 10:48:29.000000000 +0100
+++ openjdk/jdk/src/share/classes/sun/awt/SunToolkit.java	2011-03-11 11:24:33.000000000 +0100
@@ -70,8 +70,7 @@

     /* Load debug settings for native code */
     static {
-        String nativeDebug = System.getProperty("sun.awt.nativedebug");
-        if ("true".equalsIgnoreCase(nativeDebug)) {
+        if (AccessController.doPrivileged(new GetBooleanAction("sun.awt.nativedebug"))) {
             DebugSettings.init();
         }
     };