< prev index next >

src/java.base/share/classes/jdk/internal/javac/PreviewFeature.java

Print this page
*** 1,7 ***
  /*
!  * Copyright (c) 2019, 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) 2019, 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

*** 62,10 ***
--- 62,15 ---
      /**
       * Enum of preview features in the current release.
       * Values should be annotated with the feature's {@code JEP}.
       */
      public enum Feature {
+         @JEP(number = 8350458, title = "Strict Field Initialization in the JVM", status = "Preview")
+         STRICT_FIELDS,
+         @JEP(number=401, title="Value Classes and Objects", status = "Preview")
+         VALUE_OBJECTS,
+ 
          // The JDK build process involves creating an interim javac which is then
          // used to compile the rest of the JDK. The jdk.internal.javac.PreviewFeature
          // annotation from the current sources is used when compiling interim javac.
          // That's because the javac APIs of the current sources may be annotated with
          // this annotation and they may be using the enum constants of the current sources.

*** 79,11 ***
          // enum constants for preview features that are present in the bootstrap JDK.
          // Older constants can be removed.
          //
          // For example, Class-File API became final in JDK 24. As soon as JDK 23 was dropped as
          // the bootstrap JDK, the CLASSFILE_API enum constant became eligible for removal.
- 
          //---
          @JEP(number=525, title="Structured Concurrency", status="Sixth Preview")
          STRUCTURED_CONCURRENCY,
          @JEP(number = 526, title = "Lazy Constants", status = "Second Preview")
          LAZY_CONSTANTS,
--- 84,10 ---
< prev index next >