You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2018/03/02 17:19:04 UTC

groovy git commit: Add target bytecode version 9, i.e. JDK9

Repository: groovy
Updated Branches:
  refs/heads/master e9d11c4e6 -> a466e7c03


Add target bytecode version 9, i.e. JDK9


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

Branch: refs/heads/master
Commit: a466e7c03ff448dcf5b275a123c4a85fa7bf3ac2
Parents: e9d11c4
Author: danielsun1106 <re...@hotmail.com>
Authored: Sat Mar 3 01:18:41 2018 +0800
Committer: danielsun1106 <re...@hotmail.com>
Committed: Sat Mar 3 01:18:59 2018 +0800

----------------------------------------------------------------------
 .../org/codehaus/groovy/control/CompilerConfiguration.java     | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/a466e7c0/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 a91d4dc..07fbdd3 100644
--- a/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java
+++ b/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java
@@ -62,7 +62,8 @@ public class CompilerConfiguration {
     public static final String JDK7 = "1.7";
     /** This (<code>"1.8"</code>) is the value for targetBytecode to compile for a JDK 1.8. **/
     public static final String JDK8 = "1.8";
-
+    /** This (<code>"9"</code>) is the value for targetBytecode to compile for a JDK 9. **/
+    public static final String JDK9 = "9";
     /** This (<code>"1.5"</code>) is the value for targetBytecode to compile for a JDK 1.5 or later JVM. **/
     public static final String POST_JDK5 = JDK5; // for backwards compatibility
 
@@ -77,7 +78,8 @@ public class CompilerConfiguration {
             JDK5, Opcodes.V1_5,
             JDK6, Opcodes.V1_6,
             JDK7, Opcodes.V1_7,
-            JDK8, Opcodes.V1_8
+            JDK8, Opcodes.V1_8,
+            JDK9, Opcodes.V9
     );
 
     /** An array of the valid targetBytecode values **/