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

Print this page

        

@@ -2,11 +2,11 @@
  * @test /nodynamiccopyright/
  * @summary Value types do not support == or !=
  * @modules java.base/jvm.internal.value
  * @compile/fail/ref=CheckEquals.out -XDrawDiagnostics -Werror  -Xlint:values CheckEquals.java
  */
-@jvm.internal.value.DeriveValueType
+@jvm.internal.value.ValueCapableClass
 final class CheckEquals {
     boolean foo(CheckEquals a, CheckEquals b) {
         return (a == b) || (a != b);
     }
 }