diff -r 9a300e0567f7 -r 9456ceada8b1 jdk/src/macosx/classes/com/apple/eawt/Application.java --- a/jdk/src/macosx/classes/com/apple/eawt/Application.java Tue May 01 11:30:51 2012 -0700 +++ b/jdk/src/macosx/classes/com/apple/eawt/Application.java Tue May 01 19:45:34 2012 -0700 @@ -28,7 +28,6 @@ import java.awt.*; import java.awt.peer.*; import java.beans.Beans; -import java.security.PrivilegedAction; import javax.swing.JMenuBar; @@ -59,7 +58,13 @@ static Application sApplication = null; static { - java.security.AccessController.doPrivileged((PrivilegedAction)new sun.security.action.LoadLibraryAction("awt")); + java.security.AccessController.doPrivileged( + new java.security.PrivilegedAction() { + public Void run() { + System.loadLibrary("awt"); + return null; + } + }); checkSecurity(); if (!Beans.isDesignTime()) {