src/share/classes/sun/awt/image/JPEGImageDecoder.java

Print this page

        

@@ -52,11 +52,16 @@
 
     private ColorModel colormodel;
 
     static {
         java.security.AccessController.doPrivileged(
-                  new sun.security.action.LoadLibraryAction("jpeg"));
+            new java.security.PrivilegedAction<Void>() {
+                public Void run() {
+                    System.loadLibrary("jpeg");
+                    return null;
+                }
+            });
         initIDs(InputStreamClass);
         RGBcolormodel = new DirectColorModel(24, 0xff0000, 0xff00, 0xff);
         ARGBcolormodel = ColorModel.getRGBdefault();
         byte g[] = new byte[256];
         for (int i = 0; i < 256; i++) {