< prev index next >

test/jdk/java/net/httpclient/RequestBodyTest.policy

Print this page
*** 31,10 ***
--- 31,15 ---
  grant codeBase "file:${test.classes}/../../../../test/lib/-" {
      permission java.util.PropertyPermission "test.src.path", "read";
      permission java.io.FilePermission "${test.src}/../../../../lib/jdk/test/lib/net/testkeys", "read";
  };
  
+ // for jdk/httpclient/test/lib/* classes
+ grant codeBase "file:${test.classes}/../../../../test/jdk/java/net/httpclient/lib/-" {
+     permission java.lang.RuntimePermission "accessClassInPackage.jdk.internal.net.http.common";
+ };
+ 
  grant codeBase "file:${test.classes}/*" {
      permission java.io.FilePermission "${test.src}${/}docs${/}files${/}smallfile.txt", "read";
      permission java.io.FilePermission "${test.src}${/}docs${/}files${/}notsobigfile.txt", "read";
      permission java.io.FilePermission "RequestBodyTest.tmp", "read,write,delete";
  

*** 50,6 ***
--- 55,8 ---
      permission java.net.SocketPermission "127.0.0.1:*", "accept,resolve";
      permission java.net.SocketPermission "[::1]:*", "accept,resolve";
  
      permission java.util.PropertyPermission "*", "read";
      permission java.lang.RuntimePermission "modifyThread";
+ 
+     permission java.lang.RuntimePermission "accessClassInPackage.jdk.internal.net.http.common";
  };
< prev index next >