Repository: groovy Updated Branches: refs/heads/GROOVY_2_6_X 3468aa096 -> ed1b024b9
Add target bytecode version 9, i.e. JDK9 (cherry picked from commit a466e7c) Project: http://git-wip-us.apache.org/repos/asf/groovy/repo Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/ed1b024b Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/ed1b024b Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/ed1b024b Branch: refs/heads/GROOVY_2_6_X Commit: ed1b024b98677e066fa23dd03c8e4547a5197fa5 Parents: 3468aa0 Author: danielsun1106 <[email protected]> Authored: Sat Mar 3 01:18:41 2018 +0800 Committer: danielsun1106 <[email protected]> Committed: Sat Mar 3 01:20:06 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/ed1b024b/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 9b457b9..28ac3e0 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 **/
