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 35b515402e fix deprecated method usage 35b515402e is described below commit 35b515402e1b95c7ac2218d19157a8152f619535 Author: Paul King <pa...@asert.com.au> AuthorDate: Sat Apr 6 12:34:30 2024 +1000 fix deprecated method usage --- src/test/groovy/lang/ScriptTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/groovy/lang/ScriptTest.java b/src/test/groovy/lang/ScriptTest.java index 9b39682b49..8dad22af00 100644 --- a/src/test/groovy/lang/ScriptTest.java +++ b/src/test/groovy/lang/ScriptTest.java @@ -23,6 +23,7 @@ import org.codehaus.groovy.control.CompilationFailedException; import org.codehaus.groovy.runtime.MethodClosure; import java.io.IOException; +import java.lang.reflect.InvocationTargetException; /** * Tests some particular script features. @@ -36,7 +37,7 @@ public class ScriptTest extends TestSupport { * @throws IllegalAccessException * @throws InstantiationException */ - public void testInvokeMethodFallsThroughToMethodClosureInBinding() throws IOException, CompilationFailedException, IllegalAccessException, InstantiationException, NoSuchMethodException { + public void testInvokeMethodFallsThroughToMethodClosureInBinding() throws IOException, CompilationFailedException, IllegalAccessException, InstantiationException, NoSuchMethodException, InvocationTargetException { String text = "if (method() == 3) { println 'succeeded' }"; GroovyCodeSource codeSource = new GroovyCodeSource(text, "groovy.script", "groovy.script");