Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_5_X b51252c16 -> 4cd2b732b


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/4cd2b732
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/4cd2b732
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/4cd2b732

Branch: refs/heads/GROOVY_2_5_X
Commit: 4cd2b732bd4199155d3d424bd8368ac2630c9270
Parents: b51252c
Author: danielsun1106 <realblue...@hotmail.com>
Authored: Sat Mar 3 01:24:42 2018 +0800
Committer: danielsun1106 <realblue...@hotmail.com>
Committed: Sat Mar 3 01:24:42 2018 +0800

----------------------------------------------------------------------
 .../java/org/codehaus/groovy/control/CompilerConfiguration.java  | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/4cd2b732/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 75caa6b..433f79e 100644
--- a/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java
+++ b/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java
@@ -61,6 +61,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
@@ -69,7 +71,7 @@ public class CompilerConfiguration {
     public static final String PRE_JDK5 = JDK4;
 
     /** An array of the valid targetBytecode values **/
-    public static final String[] ALLOWED_JDKS = { JDK4, JDK5, JDK6, JDK7, JDK8 
};
+    public static final String[] ALLOWED_JDKS = { JDK4, JDK5, JDK6, JDK7, 
JDK8, JDK9 };
 
     // Just call getVMVersion() once.
     public static final String CURRENT_JVM_VERSION = getVMVersion();

Reply via email to