src/macosx/classes/com/apple/eawt/Application.java

Print this page

        

*** 26,36 **** package com.apple.eawt; import java.awt.*; import java.awt.peer.*; import java.beans.Beans; - import java.security.PrivilegedAction; import javax.swing.JMenuBar; import sun.lwawt.*; import sun.lwawt.macosx.*; --- 26,35 ----
*** 57,67 **** private static native void nativeInitializeApplicationDelegate(); static Application sApplication = null; static { ! java.security.AccessController.doPrivileged((PrivilegedAction<?>)new sun.security.action.LoadLibraryAction("awt")); checkSecurity(); if (!Beans.isDesignTime()) { nativeInitializeApplicationDelegate(); } --- 56,72 ---- private static native void nativeInitializeApplicationDelegate(); static Application sApplication = null; static { ! java.security.AccessController.doPrivileged( ! new java.security.PrivilegedAction<Void>() { ! public Void run() { ! System.loadLibrary("awt"); ! return null; ! } ! }); checkSecurity(); if (!Beans.isDesignTime()) { nativeInitializeApplicationDelegate(); }