Skip to content

Commit 08e6a82

Browse files
committed
8297590: [TESTBUG] HotSpotResolvedJavaFieldTest does not run
Reviewed-by: chagedorn, dnsimon
1 parent 4f65570 commit 08e6a82

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

test/hotspot/jtreg/compiler/jvmci/jdk.vm.ci.hotspot.test/src/jdk/vm/ci/hotspot/test/HotSpotResolvedJavaFieldTest.java

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,15 @@
4747
import jdk.vm.ci.runtime.JVMCI;
4848

4949
/**
50-
* Tests {@link HotSpotResolvedJavaField} functionality.
50+
*
51+
* @test
52+
* @requires vm.jvmci
53+
* @summary Tests HotSpotResolvedJavaField functionality
54+
* @library ../../../../../
55+
* @modules jdk.internal.vm.ci/jdk.vm.ci.meta
56+
* jdk.internal.vm.ci/jdk.vm.ci.runtime
57+
* jdk.internal.vm.ci/jdk.vm.ci.hotspot
58+
* @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
5159
*/
5260
public class HotSpotResolvedJavaFieldTest {
5361

@@ -61,7 +69,7 @@ public class HotSpotResolvedJavaFieldTest {
6169
Field f = null;
6270
try {
6371
Class<?> typeImpl = Class.forName("jdk.vm.ci.hotspot.HotSpotResolvedObjectTypeImpl");
64-
m = typeImpl.getDeclaredMethod("createField", JavaType.class, long.class, int.class, int.class);
72+
m = typeImpl.getDeclaredMethod("createField", JavaType.class, int.class, int.class, int.class);
6573
m.setAccessible(true);
6674
Class<?> fieldImpl = Class.forName("jdk.vm.ci.hotspot.HotSpotResolvedJavaFieldImpl");
6775
f = fieldImpl.getDeclaredField("index");

0 commit comments

Comments
 (0)