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
The following commit(s) were added to refs/heads/master by this push: new 3d42f91a99 GROOVY-10610: Provide a better fallback for running without a security manager for groovysh on JDK18 (fix to not use property notation on interface) 3d42f91a99 is described below commit 3d42f91a996db56630cd27264ce753da3287a718 Author: Paul King <pa...@asert.com.au> AuthorDate: Wed Jun 1 18:55:18 2022 +1000 GROOVY-10610: Provide a better fallback for running without a security manager for groovysh on JDK18 (fix to not use property notation on interface) --- .../groovy/org/apache/groovy/groovysh/util/SecurityManagerUtil.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/util/SecurityManagerUtil.groovy b/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/util/SecurityManagerUtil.groovy index e37da797d4..b16daa5088 100644 --- a/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/util/SecurityManagerUtil.groovy +++ b/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/util/SecurityManagerUtil.groovy @@ -32,7 +32,7 @@ class SecurityManagerUtil { } private boolean autoEnabledUntilJDK17() { - !CompilerConfiguration.isPostJDK18(VMPlugin.javaVersion) + !CompilerConfiguration.isPostJDK18(VMPlugin.getJavaVersion()) } private boolean explicitlyEnabled() {