< prev index next >

test/jdk/java/lang/reflect/records/IsRecordTest.java

Print this page
*** 1,7 ***
  /*
!  * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved.
   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   *
   * This code is free software; you can redistribute it and/or modify it
   * under the terms of the GNU General Public License version 2 only, as
   * published by the Free Software Foundation.
--- 1,7 ---
  /*
!  * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   *
   * This code is free software; you can redistribute it and/or modify it
   * under the terms of the GNU General Public License version 2 only, as
   * published by the Free Software Foundation.

*** 21,15 ***
   * questions.
   */
  
  /*
   * @test
!  * @bug 8255560
   * @summary Class::isRecord should check that the current class is final and not abstract
   * @enablePreview
   * @library /test/lib
   * @run testng/othervm IsRecordTest
   * @run testng/othervm/java.security.policy=allPermissions.policy IsRecordTest
   */
  
  import java.lang.classfile.ClassFile;
  import java.lang.constant.ClassDesc;
--- 21,16 ---
   * questions.
   */
  
  /*
   * @test
!  * @bug 8255560 8326879
   * @summary Class::isRecord should check that the current class is final and not abstract
   * @enablePreview
   * @library /test/lib
   * @run testng/othervm IsRecordTest
+  * @run testng/othervm --enable-preview IsRecordTest
   * @run testng/othervm/java.security.policy=allPermissions.policy IsRecordTest
   */
  
  import java.lang.classfile.ClassFile;
  import java.lang.constant.ClassDesc;
< prev index next >