File: mark_sun_toolkit_privileged_code.patch

package info (click to toggle)
openjdk-6 6b18-1.8.10-0~lenny2
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 102,040 kB
  • ctags: 43,823
  • sloc: java: 213,434; cpp: 30,201; ansic: 6,269; asm: 5,754; sh: 4,396; makefile: 3,511; python: 310
file content (12 lines) | stat: -rw-r--r-- 544 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
--- 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();
         }
     };