src/windows/classes/sun/awt/shell/Win32ShellFolderManager2.java

Print this page

        

*** 35,46 **** import java.security.PrivilegedAction; import java.util.*; import java.util.List; import java.util.concurrent.*; - import sun.security.action.LoadLibraryAction; - import static sun.awt.shell.Win32ShellFolder2.*; import sun.awt.OSInfo; // NOTE: This class supersedes Win32ShellFolderManager, which was removed // from distribution after version 1.4.2. --- 35,44 ----
*** 54,65 **** public class Win32ShellFolderManager2 extends ShellFolderManager { static { // Load library here ! AccessController.doPrivileged(new LoadLibraryAction("awt")); } public ShellFolder createShellFolder(File file) throws FileNotFoundException { try { return createShellFolder(getDesktop(), file); } catch (InterruptedException e) { --- 52,69 ---- public class Win32ShellFolderManager2 extends ShellFolderManager { static { // Load library here ! AccessController.doPrivileged( ! new java.security.PrivilegedAction<Void>() { ! public Void run() { ! System.loadLibrary("awt"); ! return null; } + }); + } public ShellFolder createShellFolder(File file) throws FileNotFoundException { try { return createShellFolder(getDesktop(), file); } catch (InterruptedException e) {