< prev index next >

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

Print this page


   1 /*
   2  * @test /nodynamiccopyright/
   3  * @summary Values may not extend
   4  * @modules java.base/jvm.internal.value
   5  * @compile/fail/ref=CheckExtends.out -XDrawDiagnostics -Werror  -Xlint:values CheckExtends.java
   6  */
   7 @jvm.internal.value.ValueCapableClass
   8 final class CheckExtends extends Object {
   9 }
   1 /*
   2  * @test /nodynamiccopyright/
   3  * @summary Values may not extend
   4  * @modules jdk.incubator.mvt
   5  * @compile/fail/ref=CheckExtends.out --should-stop:ifError=PARSE -XDrawDiagnostics -Werror  -Xlint:values CheckExtends.java
   6  */
   7 @jdk.incubator.mvt.ValueCapableClass
   8 final class CheckExtends extends Object {
   9 }
< prev index next >