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

Print this page

        

@@ -85,11 +85,16 @@
      */
     private int numImages = 0;
 
     static {
         java.security.AccessController.doPrivileged(
-            new sun.security.action.LoadLibraryAction("jpeg"));
+            new java.security.PrivilegedAction<Void>() {
+                public Void run() {
+                    System.loadLibrary("jpeg");
+                    return null;
+                }
+            });
         initReaderIDs(ImageInputStream.class,
                       JPEGQTable.class,
                       JPEGHuffmanTable.class);
     }