< prev index next >

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

Print this page

        

*** 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 */ /* 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 public final class CheckSync { ! @jvm.internal.value.ValueCapableClass final class Val { void foo() { // All calls below are bad. wait(); --- 1,18 ---- /* * @test /nodynamiccopyright/ * @summary May not synchronize on value types ! * @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. */ ! @jdk.incubator.mvt.ValueCapableClass public final class CheckSync { ! @jdk.incubator.mvt.ValueCapableClass final class Val { void foo() { // All calls below are bad. wait();
< prev index next >