There is a problem when executing a method "jdk.vm.ci.hotspot.HotSpotResolvedJavaFieldImpl::isStable()"
The javadoc of the method says: "Checks if this field has the {@link Stable} annotation" and "@return true if field has {@link Stable} annotation, false otherwise".
But I have a test (see attachment "StableFieldTest.java") that shows that even a field has @Stable annotation, "isStable" returns "false".
To run the test, just compile it with Javac with latest JDK 9 build, the run it with options:
$JAVA_HOME/bin/java -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -Xbootclasspath/a:$DIR_WITH_TEST_CLASS -Xcomp -ea -esa
Where DIR_WITH_TEST_CLASS is the directory containing compiled StableFieldTest.class.
The javadoc of the method says: "Checks if this field has the {@link Stable} annotation" and "@return true if field has {@link Stable} annotation, false otherwise".
But I have a test (see attachment "StableFieldTest.java") that shows that even a field has @Stable annotation, "isStable" returns "false".
To run the test, just compile it with Javac with latest JDK 9 build, the run it with options:
$JAVA_HOME/bin/java -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -Xbootclasspath/a:$DIR_WITH_TEST_CLASS -Xcomp -ea -esa
Where DIR_WITH_TEST_CLASS is the directory containing compiled StableFieldTest.class.
- relates to
-
JDK-8151664 [JVMCI] add missing test in 8151266 integration
-
- Resolved
-