Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
any java platform
Description
How does one call methods on variables passed via a Binding object? The following simple example where y is a variable passed in Binding object and is an Integer object fails to run in the script line "foo"
//-----------------------------java code-----------------------------
package groovytest;
import groovy.lang.Binding;
import groovy.lang.GroovyShell;
import groovy.lang.Script;
import java.util.HashMap;
public class GroovyJavaInterOpTest {
final static int NUMRUNNERS = 2;
static String scrStr1 =
"def foo\n" +
"
\n" +
"foo\n" +
"";
public static void main(String[] args) throws Exception
}
//----------------------------end-java-code---------------------------------