local variable has value nil when compile mode is JIT or FORCE --------------------------------------------------------------
Key: JRUBY-4695 URL: http://jira.codehaus.org/browse/JRUBY-4695 Project: JRuby Issue Type: Bug Components: Embedding Affects Versions: JRuby 1.4 Environment: OSX 10.6.3 Java 6 JRuby 1.4.0 Reporter: Uwe Kubosch Priority: Critical Fix For: JRuby 1.5 The following code writes "nil" instead of "Hullo! import org.jruby.RubyInstanceConfig.CompileMode; import org.jruby.embed.LocalContextScope; import org.jruby.embed.ScriptingContainer; public class Test { public static void main(String[] args) { System.setProperty("jruby.home", "/Users/uwe/workspace/aifudis/aifudis.dispatcher/platform/jruby"); ScriptingContainer container = new ScriptingContainer(LocalContextScope.THREADSAFE); container.getProvider().getRubyInstanceConfig().setCompileMode(CompileMode.JIT); container.put("my_var", "Hullo!"); content = container.runScriptlet("puts my_var"); } } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email