< prev index next >
test/java/lang/reflect/Module/allow.policy
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
--- 1,7 ----
/*
! * Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 21,27 ****
* questions.
*/
grant {
permission java.lang.RuntimePermission "getClassLoader";
! permission java.io.FilePermission "${java.home}/-", "read";
};
--- 21,28 ----
* questions.
*/
grant {
permission java.lang.RuntimePermission "getClassLoader";
! permission java.lang.RuntimePermission "accessSystemModules";
! permission java.io.FilePermission "${java.home}/modules/-", "read"; // exploded build
};
< prev index next >