src/windows/classes/sun/print/Win32PrintServiceLookup.java

Print this page

        

*** 54,65 **** 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")); } /* 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 --- 54,70 ---- private String[] printers; /* excludes the default printer */ private PrintService[] printServices; /* includes the default printer */ static { java.security.AccessController.doPrivileged( ! 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