< prev index next >

src/java.base/share/classes/java/lang/classfile/ClassFile.java

Print this page
*** 1,7 ***
  /*
!  * Copyright (c) 2022, 2025, 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.  Oracle designates this
--- 1,7 ---
  /*
!  * Copyright (c) 2022, 2026, 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.  Oracle designates this

*** 52,10 ***
--- 52,11 ---
  import java.util.function.Consumer;
  import java.util.function.Function;
  
  import jdk.internal.classfile.impl.ClassFileImpl;
  import jdk.internal.classfile.impl.TemporaryConstantPool;
+ import jdk.internal.javac.PreviewFeature;
  
  import static java.util.Objects.requireNonNull;
  import static jdk.internal.constant.ConstantUtils.CD_module_info;
  
  /**

*** 803,10 ***
--- 804,18 ---
      int ACC_ANNOTATION = 0x2000;
  
      /** The bit mask of {@link AccessFlag#SUPER} access and property modifier. */
      int ACC_SUPER = 0x0020;
  
+     /**
+      * The bit mask of {@link AccessFlag#IDENTITY} access and property modifier.
+      *
+      * @since Valhalla
+      */
+     @PreviewFeature(feature = PreviewFeature.Feature.VALUE_OBJECTS, reflective = true)
+     int ACC_IDENTITY = 0x0020;
+ 
      /** The bit mask of {@link AccessFlag#ABSTRACT} access and property modifier. */
      int ACC_ABSTRACT = 0x0400;
  
      /** The bit mask of {@link AccessFlag#VOLATILE} access and property modifier. */
      int ACC_VOLATILE = 0x0040;

*** 836,10 ***
--- 845,18 ---
      int ACC_NATIVE = 0x0100;
  
      /** The bit mask of {@link AccessFlag#STRICT} access and property modifier. */
      int ACC_STRICT = 0x0800;
  
+     /**
+      * The bit mask of {@link AccessFlag#STRICT_INIT} access and property modifier.
+      *
+      * @since Valhalla
+      */
+     @PreviewFeature(feature = PreviewFeature.Feature.STRICT_FIELDS, reflective = true)
+     int ACC_STRICT_INIT = 0x0800;
+ 
      /** The bit mask of {@link AccessFlag#MODULE} access and property modifier. */
      int ACC_MODULE = 0x8000;
  
      /** The bit mask of {@link AccessFlag#OPEN} access and property modifier. */
      int ACC_OPEN = 0x20;
< prev index next >