JSR 223 code execution breaks with JRuby 1.6.4/1.6.3 with no error message --------------------------------------------------------------------------
Key: JRUBY-6101 URL: https://jira.codehaus.org/browse/JRUBY-6101 Project: JRuby Issue Type: Bug Components: Embedding Affects Versions: JRuby 1.6.4, JRuby 1.6.3 Environment: Java Version: 1.6.0_27 /Win7 64-bit Reporter: j freund Hi, I use the ScriptEngineManager to execute Ruby Scripts from Java Code, but with JRuby 1.6.4 the following code breaks: {code:java} for (; ; ) { ScriptEngineManager m = new ScriptEngineManager(); m.getEngineByExtension("rb").eval("puts(\""+new Date()+"\")"); } {code} The loop stops with no error message after about 20 outputs. If I use the same code with JRuby 1.5.6 everything works fine. BTW: If I do the Script Engine initialization outside the loop it works (but thats not the way I should have to do it (?) - no other ScriptEngine implementation has a problem with the kind of initialization shown above). Add. info from the mailing list: {quote} Thanks for reporting this. I confirmed exactly the same weird behavior on master, too. This doesn't happen on ScriptingContainer, so is a JSR223 impl bug probably. I'm going to look into this bug. Would you file this in JIRA? You can track a bug fixing. -Yoko {quote} -- This message is automatically generated by JIRA. 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