Fixed issue
Nashorn conversion is used only if Graal is not enabled
package com.orientechnologies.orient.core.command.script;
import com.orientechnologies.common.log.OLogManager;
+import com.orientechnologies.orient.core.config.OGlobalConfiguration;
+
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;
@@ -37,6 +39,7 @@ public class OCommandExecutorUtility {
static {
Method isArray = null;
+ if (!OGlobalConfiguration.SCRIPT_POLYGLOT_USE_GRAAL.getValueAsBoolean())
try {
isArray =
Class.forName("jdk.nashorn.api.scripting.JSObject").getDeclaredMethod("isArray", null);
