Nashorn对我来说是一个新的平台,我对它并没有做太多的工作,但是现在需要有下面的Java行来工作来访问InputStream对象:问题是,当IOUtils.toInputStream被写为:
var is = IOUtils.toInputStream(body, "UTF-8"); //JS in Nashorn如何在Nashorn平台上获取实际的InputSt
框架和Nashorn试图呈现一个Redux应用程序。最初,我在ThreadPoolExecutor中实现了多个Nashorn引擎,并在运行engine.eval()时使用了期货。cannot be cast to jdk.nashorn.internal.objects.NativeArray at jdk.nashorn.internal.runt
at jdk.nashorn.internal.codegen.Compiler.compile(Compiler.java:361) at jdk.nashorn.internal.runtime.Context.compileScript(Context.java:1019)at jdk.nashorn.internal.runtime.Context.c