src/share/classes/com/sun/imageio/plugins/jpeg/JPEGImageWriter.java

Print this page

        

@@ -175,11 +175,16 @@
 
     ///////// static initializer
 
     static {
         java.security.AccessController.doPrivileged(
-            new sun.security.action.LoadLibraryAction("jpeg"));
+            new java.security.PrivilegedAction<Void>() {
+                public Void run() {
+                    System.loadLibrary("jpeg");
+                    return null;
+                }
+            });
         initWriterIDs(ImageOutputStream.class,
                       JPEGQTable.class,
                       JPEGHuffmanTable.class);
     }