JDK 13 RFR of JDK-8225532: Upddate source enums to describe 12 and 13 language features

Joe Darcy joe.darcy at oracle.com
Mon Jun 10 17:48:38 UTC 2019


Hello,

Please review the small comment improvement below ahead of the JDK 13 fork:

     JDK-8225532: Upddate source enums to describe 12 and 13 language 
features

Patch below; thanks,

-Joe

diff -r 4cf21c5c956a 
src/java.compiler/share/classes/javax/lang/model/SourceVersion.java
--- 
a/src/java.compiler/share/classes/javax/lang/model/SourceVersion.java 
Mon Jun 10 09:41:09 2019 -0700
+++ 
b/src/java.compiler/share/classes/javax/lang/model/SourceVersion.java 
Mon Jun 10 10:47:48 2019 -0700
@@ -58,8 +58,8 @@
       *   9: modules, small cleanups to 1.7 and 1.8 changes
       *  10: local-variable type inference (var)
       *  11: local-variable syntax for lambda parameters
-     *  12: no changes (switch expressions in preview)
-     *  13: TBD
+     *  12: no changes (switch expressions were in preview)
+     *  13: no changes (switch expressions and text blocks in preview)
       */

      /**
diff -r 4cf21c5c956a 
src/jdk.compiler/share/classes/com/sun/tools/javac/code/Source.java
--- 
a/src/jdk.compiler/share/classes/com/sun/tools/javac/code/Source.java 
Mon Jun 10 09:41:09 2019 -0700
+++ 
b/src/jdk.compiler/share/classes/com/sun/tools/javac/code/Source.java 
Mon Jun 10 10:47:48 2019 -0700
@@ -84,10 +84,13 @@
      /** 1.11 local-variable syntax for lambda parameters */
      JDK11("11"),

-    /** 12 covers the to be determined language features that will be 
added in JDK 12. */
+    /** 12, no language features, switch expression were in preview */
      JDK12("12"),

-    /** 13 covers the to be determined language features that will be 
added in JDK 13. */
+    /**
+     * 13, no language features, revised switch expressions in preview
+     * along with text blocks
+     */
      JDK13("13");

      private static final Context.Key<Source> sourceKey = new 
Context.Key<>();



More information about the compiler-dev mailing list