I use the ScriptEngineManager to execute Ruby Scripts from Java Code, but with JRuby 1.6.4 the following code breaks:
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:
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.