Hi,
I'm have ported JSR223-JRuby Engine to work with JRuby 1.3.0 version (few
minor adjustments only). However when using this engine with JRuby 1.3.0 I
get an annoying error log which says:
"Error, could not compile; pass -d or -J-Djruby.jit.logging.verbose=true for
more details"
Following is the engine code which generates the error log:
<code>
private Object evalNodeWithAutoTermination(Node node) throws Exception
{
try {
return rubyToJava(runtime.runNormally(node)); // This line
} finally {
try {
JavaEmbedUtils.terminate(runtime);
} catch (RaiseException e) {
RubyException re = e.getException();
runtime.printError(re);
if (!runtime.fastGetClass("SystemExit").isInstance(re)) {
throw new ScriptException(e);
}
}
}
}
</code>
It is the "runtime.runNormally(node)" line that causes the error log.
What am I doing wrong and what can I do to fix this? (Note: I'm not an
experienced ruby developer)
Also, it would be really cool if JSR223 engine for jruby can be ditributed
with JRuby itself, this will make a lot of probelms go away.
Thanks.
- Asiri