8178708: Regtest failure: java/awt/Color/LoadProfileWithSM.java
Reviewed-by: serb, alanb, mchung
--- 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
*/