You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In trying to move SciJava to v 3.5-beta76 (from 0.9) one of our unit tests is failing with an assertNull after RenjinBindings.clear(). Based on Renjin source everything looks correct. Furthermore, both javax.script.ScriptEngine.put() and javax.script.ScriptEngine.remove() behave predictably. Any insight would be appreciated, thanks.
final Context context = new Context(ScriptService.class);
final ScriptService scriptService = context.getService(ScriptService.class);
final ScriptLanguage language = scriptService.getLanguageByExtension("r");
final ScriptEngine engine = language.getScriptEngine();
assertEquals(RenjinScriptEngine.class, engine.getClass());
engine.put("hello", 17);
assertEquals(17, RenjinUtils.getJavaValue((SEXP) engine.eval("hello")));
assertEquals(17, RenjinUtils.getJavaValue((SEXP) engine.get("hello")));
RenjinBindings bindings = (RenjinBindings)engine.getBindings(ScriptContext.ENGINE_SCOPE);
bindings.clear();
System.out.println("Binding 2:" + bindings.get("hello"));
assertNull(RenjinUtils.getJavaValue((SEXP) engine.get("hello")));
assertNull(RenjinUtils.getJavaValue((SEXP) engine.get("polar_kraken")));
The text was updated successfully, but these errors were encountered:
In trying to move SciJava to v 3.5-beta76 (from 0.9) one of our unit tests is failing with an assertNull after RenjinBindings.clear(). Based on Renjin source everything looks correct. Furthermore, both javax.script.ScriptEngine.put() and javax.script.ScriptEngine.remove() behave predictably. Any insight would be appreciated, thanks.
The text was updated successfully, but these errors were encountered: