src/macosx/classes/sun/awt/CGraphicsEnvironment.java

Print this page

        

*** 56,68 **** * Noop function that just acts as an entry point for someone to force a static initialization of this class. */ public static void init() { } static { ! java.security.AccessController.doPrivileged(new sun.security.action.LoadLibraryAction("awt")); ! java.security.AccessController.doPrivileged(new java.security.PrivilegedAction<Object>() { ! public Object run() { if (isHeadless()) return null; initCocoa(); return null; } }); --- 56,74 ---- * Noop function that just acts as an entry point for someone to force a static initialization of this class. */ public static void init() { } static { ! java.security.AccessController.doPrivileged(new java.security.PrivilegedAction<Void>() { ! public Void run() { ! System.loadLibrary("awt"); ! return null; ! } ! }); ! ! java.security.AccessController.doPrivileged(new java.security.PrivilegedAction<Void>() { ! public Void run() { if (isHeadless()) return null; initCocoa(); return null; } });