Hi all,
I use the ScriptEngineManager to execute Ruby Scripts from Java Code,
but with JRuby 1.6.4 the following code breaks:
for (; ; ) {
ScriptEngineManager m = new ScriptEngineManager();
m.getEngineByExtension(“rb”).eval(“puts(”"+new Date()+"")");
}
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. Am I doing
something wrong?
Hi all,
I use the ScriptEngineManager to execute Ruby Scripts from Java Code, but with
JRuby 1.6.4 the following code breaks:
for (; ; ) {
ScriptEngineManager m = new ScriptEngineManager();
m.getEngineByExtension(“rb”).eval(“puts("”+new Date()+“")”);
}
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. Am I doing something wrong?
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.