8178708: Regtest failure: java/awt/Color/LoadProfileWithSM.java
authorprr
Mon, 17 Apr 2017 09:08:38 -0700
changeset 44771 2ae94a74c972
parent 44770 3bb4daed0874
child 44772 1d562a53fd19
child 44775 f9c5f5f38a6a
8178708: Regtest failure: java/awt/Color/LoadProfileWithSM.java Reviewed-by: serb, alanb, mchung
jdk/src/java.desktop/share/classes/java/awt/color/ICC_Profile.java
jdk/test/java/awt/Color/LoadProfileWithSM.java
--- a/jdk/src/java.desktop/share/classes/java/awt/color/ICC_Profile.java	Mon Apr 17 09:05:31 2017 -0700
+++ b/jdk/src/java.desktop/share/classes/java/awt/color/ICC_Profile.java	Mon Apr 17 09:08:38 2017 -0700
@@ -1874,7 +1874,8 @@
                     return
                         PCMM.class.getResourceAsStream("profiles/" + fileName);
                 }
-            }, null, new FilePermission("<<ALL FILES>>", "read"));
+            }, null, new FilePermission("<<ALL FILES>>", "read"),
+                     new RuntimePermission("accessSystemModules"));
     }
 
     /**
--- a/jdk/test/java/awt/Color/LoadProfileWithSM.java	Mon Apr 17 09:05:31 2017 -0700
+++ b/jdk/test/java/awt/Color/LoadProfileWithSM.java	Mon Apr 17 09:08:38 2017 -0700
@@ -25,7 +25,7 @@
 
 /*
  * @test
- * @bug 8058969
+ * @bug 8058969 8178708
  * @summary test standard profiles loads with SecurityManager installed.
  * @run main/othervm LoadProfileWithSM
  */