changeset 44771:2ae94a74c972

8178708: Regtest failure: java/awt/Color/LoadProfileWithSM.java Reviewed-by: serb, alanb, mchung
author prr
date Mon, 17 Apr 2017 09:08:38 -0700
parents 3bb4daed0874
children 1d562a53fd19 f9c5f5f38a6a
files jdk/src/java.desktop/share/classes/java/awt/color/ICC_Profile.java jdk/test/java/awt/Color/LoadProfileWithSM.java
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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
  */