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 75404672267ef24c8459fcb6735109b127671e49 Author: Paul King <[email protected]> AuthorDate: Sun Aug 3 15:48:56 2025 +1000 GROOVY-8162: Update Groovysh to JLine3 (no need for types) --- .../main/groovy/org/apache/groovy/groovysh/jline/GroovyEngine.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/jline/GroovyEngine.java b/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/jline/GroovyEngine.java index 870d67de12..a51c2f343a 100644 --- a/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/jline/GroovyEngine.java +++ b/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/jline/GroovyEngine.java @@ -431,8 +431,8 @@ public class GroovyEngine implements ScriptEngine { } else { boolean iMode = isInterpreterMode(); EnumSet<SnippetType> filter = iMode - ? EnumSet.of(SnippetType.IMPORT, SnippetType.TYPE, SnippetType.VARIABLE, SnippetType.METHOD) - : EnumSet.of(SnippetType.IMPORT, SnippetType.TYPE); + ? EnumSet.of(SnippetType.IMPORT, SnippetType.VARIABLE, SnippetType.METHOD) + : EnumSet.of(SnippetType.IMPORT); out = executeStatement(shell, snippets, filter, statement); classLoader.purgeClassCache(); Matcher matcher = PATTERN_TYPE_DEF.matcher(statement);
