You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2020/04/15 03:24:29 UTC
[groovy] branch master updated (2967e3d -> 0adc506)
This is an automated email from the ASF dual-hosted git repository.
paulk pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git.
from 2967e3d Cache gradle repository to speed-up github actions builds.
new 32a306d GROOVY-9505: Bump ASM_API_VERSION to Opcodes.ASM8 (closes #1222)
new 0adc506 GROOVY-9508: groovyConsole CLI plumbing for --enable-preview command-line switch is missing one part
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java | 5 ++++-
.../groovy-console/src/main/groovy/groovy/console/ui/Console.groovy | 1 +
.../src/main/resources/groovy/console/ui/Console.properties | 2 ++
3 files changed, 7 insertions(+), 1 deletion(-)
[groovy] 02/02: GROOVY-9508: groovyConsole CLI plumbing for
--enable-preview command-line switch is missing one part
Posted by pa...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git
commit 0adc5065d4fbbc6ac972fa576ca8ab713db50be9
Author: Paul King <pa...@asert.com.au>
AuthorDate: Wed Apr 15 13:24:06 2020 +1000
GROOVY-9508: groovyConsole CLI plumbing for --enable-preview command-line switch is missing one part
---
.../groovy-console/src/main/groovy/groovy/console/ui/Console.groovy | 1 +
.../src/main/resources/groovy/console/ui/Console.properties | 2 ++
2 files changed, 3 insertions(+)
diff --git a/subprojects/groovy-console/src/main/groovy/groovy/console/ui/Console.groovy b/subprojects/groovy-console/src/main/groovy/groovy/console/ui/Console.groovy
index d6e8303..6a5a90c 100644
--- a/subprojects/groovy-console/src/main/groovy/groovy/console/ui/Console.groovy
+++ b/subprojects/groovy-console/src/main/groovy/groovy/console/ui/Console.groovy
@@ -253,6 +253,7 @@ class Console implements CaretListener, HyperlinkListener, ComponentListener, Fo
h(longOpt: 'help', messages['cli.option.help.description'])
V(longOpt: 'version', messages['cli.option.version.description'])
pa(longOpt: 'parameters', messages['cli.option.parameters.description'])
+ pr(longOpt: 'enable-preview', messages['cli.option.enable.preview.description'])
i(longOpt: 'indy', messages['cli.option.indy.description'])
D(longOpt: 'define', type: Map, argName: 'name=value', messages['cli.option.define.description'])
_(longOpt: 'configscript', args: 1, messages['cli.option.configscript.description'])
diff --git a/subprojects/groovy-console/src/main/resources/groovy/console/ui/Console.properties b/subprojects/groovy-console/src/main/resources/groovy/console/ui/Console.properties
index 6c443b7..56371c2 100644
--- a/subprojects/groovy-console/src/main/resources/groovy/console/ui/Console.properties
+++ b/subprojects/groovy-console/src/main/resources/groovy/console/ui/Console.properties
@@ -26,6 +26,8 @@ cli.option.cp.description=Aliases for '-classpath'
cli.option.classpath.description=Specify where to find the class files - must be first argument
+cli.option.enable.preview.description=Enable preview Java features (JEP 12) (jdk12+ only) - must be after classpath but before other arguments
+
cli.option.parameters.description=Generate metadata for reflection on method parameter names (jdk8+ only)
cli.option.indy.description=Enable InvokeDynamic (Indy) compilation for scripts
[groovy] 01/02: GROOVY-9505: Bump ASM_API_VERSION to Opcodes.ASM8
(closes #1222)
Posted by pa...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git
commit 32a306d1ea035ed94fd9836fa220982c1c01a87f
Author: Kamil Jedrzejuk <ka...@gmail.com>
AuthorDate: Mon Apr 13 15:58:18 2020 +0200
GROOVY-9505: Bump ASM_API_VERSION to Opcodes.ASM8 (closes #1222)
---
src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java b/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java
index 375a87c..da25138 100644
--- a/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java
+++ b/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java
@@ -122,7 +122,10 @@ public class CompilerConfiguration {
*/
public static final String[] ALLOWED_JDKS = JDK_TO_BYTECODE_VERSION_MAP.keySet().toArray(new String[JDK_TO_BYTECODE_VERSION_MAP.size()]);
- public static final int ASM_API_VERSION = Opcodes.ASM7;
+ /**
+ * The valid instruction sets.
+ */
+ public static final int ASM_API_VERSION = Opcodes.ASM8;
/**
* The default source encoding.