src/share/classes/java/awt/color/ICC_Profile.java

Print this page

        

@@ -56,11 +56,10 @@
 import java.util.StringTokenizer;
 
 import java.security.AccessController;
 import java.security.PrivilegedAction;
 
-import sun.misc.BootClassLoaderHook;
 
 /**
  * A representation of color profile data for device independent and
  * device dependent color spaces based on the International Color
  * Consortium Specification ICC.1:2001-12, File Format for Color Profiles,

@@ -863,12 +862,11 @@
             break;
 
         case ColorSpace.CS_PYCC:
             synchronized(ICC_Profile.class) {
                 if (PYCCprofile == null) {
-                    if (BootClassLoaderHook.getHook() != null ||
-                        standardProfileExists("PYCC.pf"))
+                    if (standardProfileExists("PYCC.pf"))
                     {
                         ProfileDeferralInfo pInfo =
                             new ProfileDeferralInfo("PYCC.pf",
                                                     ColorSpace.TYPE_3CLR, 3,
                                                     CLASS_DISPLAY);