< prev index next >

langtools/test/tools/javac/valhalla/minimalvalues/CheckSync.java

Print this page

        

@@ -1,18 +1,18 @@
 /*
  * @test /nodynamiccopyright/
  * @summary May not synchronize on value types
- * @modules java.base/jvm.internal.value
- * @compile/fail/ref=CheckSync.out -XDrawDiagnostics -Werror -Xlint:values  CheckSync.java
+ * @modules jdk.incubator.mvt
+ * @compile/fail/ref=CheckSync.out --should-stop:ifError=PARSE -XDrawDiagnostics -Werror -Xlint:values  CheckSync.java
  */
 
 /* Note: ATM, value types do not have jlO in their lineage. So they anyway
    cannot synchronize using the methods declared on jlO.
 */
-@jvm.internal.value.ValueCapableClass
+@jdk.incubator.mvt.ValueCapableClass
 public final class CheckSync {
-    @jvm.internal.value.ValueCapableClass
+    @jdk.incubator.mvt.ValueCapableClass
     final class Val {
 
         void foo() {
             // All calls below are bad.
             wait();
< prev index next >