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

Print this page

        

@@ -2,13 +2,13 @@
  * @test /nodynamiccopyright/
  * @summary Value types do not support clone
  * @modules java.base/jvm.internal.value
  * @compile/fail/ref=CheckClone.out  -XDrawDiagnostics -Werror -Xlint:values CheckClone.java
  */
-@jvm.internal.value.DeriveValueType
+@jvm.internal.value.ValueCapableClass
 final class CheckClone {
-    @jvm.internal.value.DeriveValueType
+    @jvm.internal.value.ValueCapableClass
     final class InnerValue {
         void foo(InnerValue iv) {
             iv.clone(); // <-- error
         }
     }