Test: make secure mock setup work with ibm jdk

This commit is contained in:
Ryan Ernst 2016-06-14 18:45:07 -07:00
parent e96722d91c
commit fa77d4d885
1 changed files with 2 additions and 0 deletions

View File

@ -24,6 +24,8 @@
grant codeBase "${codebase.securemock-1.2.jar}" { grant codeBase "${codebase.securemock-1.2.jar}" {
// needed to access ReflectionFactory (see below) // needed to access ReflectionFactory (see below)
permission java.lang.RuntimePermission "accessClassInPackage.sun.reflect"; permission java.lang.RuntimePermission "accessClassInPackage.sun.reflect";
// needed for reflection in ibm jdk
permission java.lang.RuntimePermission "accessClassInPackage.sun.misc";
// needed to support creation of mocks // needed to support creation of mocks
permission java.lang.RuntimePermission "reflectionFactoryAccess"; permission java.lang.RuntimePermission "reflectionFactoryAccess";
// needed for spy interception, etc // needed for spy interception, etc