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

Print this page

        

@@ -2,11 +2,11 @@
  * @test /nodynamiccopyright/
  * @summary Value types do not support identityHashCode
  * @modules java.base/jvm.internal.value
  * @compile/fail/ref=CheckIdentityHash.out -XDrawDiagnostics -Werror -Xlint:values  CheckIdentityHash.java
  */
-@jvm.internal.value.DeriveValueType
+@jvm.internal.value.ValueCapableClass
 final class CheckIdentityHash {
     int identityHashCode(CheckIdentityHash x) {
         return 0;
     }
     void test(CheckIdentityHash v) {