8297590: [TESTBUG] HotSpotResolvedJavaFieldTest does not run

Reviewed-by: chagedorn, dnsimon
This commit is contained in:
Severin Gehwolf 2022-11-25 16:29:53 +00:00
parent 4f65570204
commit 08e6a820bc

View File

@ -47,7 +47,15 @@ import jdk.vm.ci.meta.ResolvedJavaType;
import jdk.vm.ci.runtime.JVMCI;
/**
* Tests {@link HotSpotResolvedJavaField} functionality.
*
* @test
* @requires vm.jvmci
* @summary Tests HotSpotResolvedJavaField functionality
* @library ../../../../../
* @modules jdk.internal.vm.ci/jdk.vm.ci.meta
* jdk.internal.vm.ci/jdk.vm.ci.runtime
* jdk.internal.vm.ci/jdk.vm.ci.hotspot
* @run junit/othervm --add-opens=jdk.internal.vm.ci/jdk.vm.ci.hotspot=ALL-UNNAMED -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -XX:-UseJVMCICompiler jdk.vm.ci.hotspot.test.HotSpotResolvedJavaFieldTest
*/
public class HotSpotResolvedJavaFieldTest {
@ -61,7 +69,7 @@ public class HotSpotResolvedJavaFieldTest {
Field f = null;
try {
Class<?> typeImpl = Class.forName("jdk.vm.ci.hotspot.HotSpotResolvedObjectTypeImpl");
m = typeImpl.getDeclaredMethod("createField", JavaType.class, long.class, int.class, int.class);
m = typeImpl.getDeclaredMethod("createField", JavaType.class, int.class, int.class, int.class);
m.setAccessible(true);
Class<?> fieldImpl = Class.forName("jdk.vm.ci.hotspot.HotSpotResolvedJavaFieldImpl");
f = fieldImpl.getDeclaredField("index");