8225532: Update source enums to describe 12 and 13 language features
authordarcy
Mon, 10 Jun 2019 15:53:35 -0700
changeset 55318 040e1c6dab96
parent 55317 b76aee290002
child 55319 c6498066a0a5
8225532: Update source enums to describe 12 and 13 language features Reviewed-by: jjg
src/java.compiler/share/classes/javax/lang/model/SourceVersion.java
src/jdk.compiler/share/classes/com/sun/tools/javac/code/Source.java
--- a/src/java.compiler/share/classes/javax/lang/model/SourceVersion.java	Mon Jun 10 15:55:11 2019 -0700
+++ b/src/java.compiler/share/classes/javax/lang/model/SourceVersion.java	Mon Jun 10 15:53:35 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)
      */
 
     /**
--- a/src/jdk.compiler/share/classes/com/sun/tools/javac/code/Source.java	Mon Jun 10 15:55:11 2019 -0700
+++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/code/Source.java	Mon Jun 10 15:53:35 2019 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2002, 2019, 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
@@ -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; text blocks and revised switch
+     * expressions in preview
+     */
     JDK13("13");
 
     private static final Context.Key<Source> sourceKey = new Context.Key<>();