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

Print this page

        

*** 6,18 **** */ /* 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.DeriveValueType public final class CheckSync { ! @jvm.internal.value.DeriveValueType final class Val { void foo() { // All calls below are bad. wait(); --- 6,18 ---- */ /* 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();