src/windows/classes/sun/print/Win32PrintServiceLookup.java
Print this page
@@ -54,12 +54,17 @@
private String[] printers; /* excludes the default printer */
private PrintService[] printServices; /* includes the default printer */
static {
java.security.AccessController.doPrivileged(
- new sun.security.action.LoadLibraryAction("awt"));
+ new java.security.PrivilegedAction<Void>() {
+ public Void run() {
+ System.loadLibrary("awt");
+ return null;
}
+ });
+ }
/* The singleton win32 print lookup service.
* Code that is aware of this field and wants to use it must first
* see if its null, and if so instantiate it by calling a method such as
* javax.print.PrintServiceLookup.defaultPrintService() so that the