From fa77d4d88527c64d3ff3751e4fe4338c00b37ed0 Mon Sep 17 00:00:00 2001 From: Ryan Ernst Date: Tue, 14 Jun 2016 18:45:07 -0700 Subject: [PATCH] Test: make secure mock setup work with ibm jdk --- .../resources/org/elasticsearch/bootstrap/test-framework.policy | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/main/resources/org/elasticsearch/bootstrap/test-framework.policy b/core/src/main/resources/org/elasticsearch/bootstrap/test-framework.policy index d7faab5eeda..7abebf01be1 100644 --- a/core/src/main/resources/org/elasticsearch/bootstrap/test-framework.policy +++ b/core/src/main/resources/org/elasticsearch/bootstrap/test-framework.policy @@ -24,6 +24,8 @@ grant codeBase "${codebase.securemock-1.2.jar}" { // needed to access ReflectionFactory (see below) 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 permission java.lang.RuntimePermission "reflectionFactoryAccess"; // needed for spy interception, etc