< prev index next >

src/jdk.compiler/share/classes/com/sun/tools/javac/code/Preview.java

Print this page
*** 209,10 ***
--- 209,12 ---
       */
      public boolean isPreview(Feature feature) {
          return switch (feature) {
              case STRING_TEMPLATES -> true;
              case UNNAMED_CLASSES -> true;
+             case SUPER_INIT -> true;
+             case VALUE_CLASSES -> true;
              //Note: this is a backdoor which allows to optionally treat all features as 'preview' (for testing).
              //When real preview features will be added, this method can be implemented to return 'true'
              //for those selected features, and 'false' for all the others.
              default -> forcePreview;
          };
< prev index next >