changeset 17037:f11efef2d1f3

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 8320693956ea
children 09aa37cacba9 8ec1d93d7ff5
files src/java.desktop/share/classes/java/awt/color/ICC_Profile.java test/java/awt/Color/LoadProfileWithSM.java
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.desktop/share/classes/java/awt/color/ICC_Profile.java	Mon Apr 17 09:05:31 2017 -0700
+++ b/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/test/java/awt/Color/LoadProfileWithSM.java	Mon Apr 17 09:05:31 2017 -0700
+++ b/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
  */