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

Print this page

        

*** 2,9 **** * @test /nodynamiccopyright/ * @summary Values may not extend * @modules java.base/jvm.internal.value * @compile/fail/ref=CheckExtends.out -XDrawDiagnostics -Werror -Xlint:values CheckExtends.java */ ! @jvm.internal.value.DeriveValueType final class CheckExtends extends Object { } --- 2,9 ---- * @test /nodynamiccopyright/ * @summary Values may not extend * @modules java.base/jvm.internal.value * @compile/fail/ref=CheckExtends.out -XDrawDiagnostics -Werror -Xlint:values CheckExtends.java */ ! @jvm.internal.value.ValueCapableClass final class CheckExtends extends Object { }