8215117: [JVMCI] TestResolvedJavaType.java failing after JDK-8210031
Reviewed-by: thartmann
--- a/test/hotspot/jtreg/compiler/jvmci/jdk.vm.ci.runtime.test/src/jdk/vm/ci/runtime/test/TestResolvedJavaType.java Mon Dec 10 15:47:44 2018 +0100
+++ b/test/hotspot/jtreg/compiler/jvmci/jdk.vm.ci.runtime.test/src/jdk/vm/ci/runtime/test/TestResolvedJavaType.java Mon Dec 10 06:52:12 2018 -0800
@@ -49,6 +49,7 @@
import static org.junit.Assert.assertTrue;
import java.lang.annotation.Annotation;
+import java.lang.invoke.MethodHandles.Lookup;
import java.lang.reflect.AccessibleObject;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
@@ -764,6 +765,9 @@
if (f.getDeclaringClass().equals(metaAccess.lookupJavaType(Class.class)) && f.getName().equals("classLoader")) {
return true;
}
+ if (f.getDeclaringClass().equals(metaAccess.lookupJavaType(Lookup.class))) {
+ return f.getName().equals("allowedModes") || f.getName().equals("lookupClass");
+ }
if (f.getDeclaringClass().equals(metaAccess.lookupJavaType(ClassLoader.class)) ||
f.getDeclaringClass().equals(metaAccess.lookupJavaType(AccessibleObject.class)) ||
f.getDeclaringClass().equals(metaAccess.lookupJavaType(Constructor.class)) ||