Repository: groovy
Updated Branches:
  refs/heads/master 2b8b101c9 -> 8cb2442aa


GROOVY-8784: Prepare for supporting JDK 12 bytecode (plus deprecate some old 
constants)


Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/8cb2442a
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/8cb2442a
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/8cb2442a

Branch: refs/heads/master
Commit: 8cb2442aae1ab527abe4a924f5a4baceea08938e
Parents: 2b8b101
Author: Paul King <[email protected]>
Authored: Thu Sep 13 07:18:17 2018 +1000
Committer: Paul King <[email protected]>
Committed: Thu Sep 13 07:18:17 2018 +1000

----------------------------------------------------------------------
 .../groovy/control/CompilerConfiguration.java     | 18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/8cb2442a/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java
----------------------------------------------------------------------
diff --git 
a/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java 
b/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java
index 865e2d38..4e36b3e 100644
--- a/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java
+++ b/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java
@@ -65,10 +65,21 @@ public class CompilerConfiguration {
     public static final String JDK10 = "10";
     /** This (<code>"11"</code>) is the value for targetBytecode to compile 
for a JDK 11. **/
     public static final String JDK11 = "11";
-    /** This (<code>"1.5"</code>) is the value for targetBytecode to compile 
for a JDK 1.5 or later JVM. **/
+    /** This (<code>"11"</code>) is the value for targetBytecode to compile 
for a JDK 12. **/
+    public static final String JDK12 = "12";
+
+    /**
+     * This constant is for comparing targetBytecode to ensure it is set to 
JDK 1.5 or later.
+     * @deprecated
+     */
+    @Deprecated
     public static final String POST_JDK5 = JDK5; // for backwards compatibility
 
-    /** This (<code>"1.4"</code>) is the value for targetBytecode to compile 
for a JDK 1.4 JVM. **/
+    /**
+     * This constant is for comparing targetBytecode to ensure it is set to an 
earlier value than JDK 1.5.
+     * @deprecated
+     */
+    @Deprecated
     public static final String PRE_JDK5 = JDK4;
 
     /**
@@ -82,7 +93,8 @@ public class CompilerConfiguration {
             JDK8, Opcodes.V1_8,
             JDK9, Opcodes.V9,
             JDK10, Opcodes.V10,
-            JDK11, Opcodes.V11
+            JDK11, Opcodes.V11,
+            JDK12, Opcodes.V12
     );
 
     /** An array of the valid targetBytecode values **/

Reply via email to