# HG changeset patch # User dlong # Date 1544453532 28800 # Node ID 38bee05fb0e4b26b522ace70e7453ab118eb299b # Parent 9c18c9d839d3a325f904a60bc55d3a29ee97feb5 8215117: [JVMCI] TestResolvedJavaType.java failing after JDK-8210031 Reviewed-by: thartmann diff -r 9c18c9d839d3 -r 38bee05fb0e4 test/hotspot/jtreg/compiler/jvmci/jdk.vm.ci.runtime.test/src/jdk/vm/ci/runtime/test/TestResolvedJavaType.java --- 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)) ||