Fehlerbehebung Nashorn "Methodencode zu groß!" - Ausnahme

Laufenjjs oderScriptEngine#eval in meinem JavaScript https: //gist.github.com/also/005fd7c200b20f012e1) stürzt mit dieser Ausnahme ab und keine weiteren Details:

Exception in thread "main" java.lang.RuntimeException: Method code too large!
        at jdk.internal.org.objectweb.asm.MethodWriter.getSize(MethodWriter.java:2065)
        at jdk.internal.org.objectweb.asm.ClassWriter.toByteArray(ClassWriter.java:856)
        at jdk.nashorn.internal.codegen.ClassEmitter.toByteArray(ClassEmitter.java:577)
        at jdk.nashorn.internal.codegen.CompilationPhase$8.transform(CompilationPhase.java:396)
        at jdk.nashorn.internal.codegen.CompilationPhase.apply(CompilationPhase.java:513)
        at jdk.nashorn.internal.codegen.Compiler.compile(Compiler.java:361)
        at jdk.nashorn.internal.runtime.Context.compile(Context.java:1071)
        at jdk.nashorn.internal.runtime.Context.compileScript(Context.java:1019)
        at jdk.nashorn.internal.runtime.Context.compileScript(Context.java:490)
        at jdk.nashorn.tools.Shell.runScripts(Shell.java:306)
        at jdk.nashorn.tools.Shell.run(Shell.java:168)
        at jdk.nashorn.tools.Shell.main(Shell.java:132)
        at jdk.nashorn.tools.Shell.main(Shell.java:111)

Wie kann ich herausfinden, warum der Methodencode zu groß ist? Ich habe versucht, einige Protokolloptionen zujjs (--log=codegen:info), aber ich habe nichts gesehen, was auf einen Täter hindeutet.

Ich habe mit Java-Versionen 1.9.0-ea-b34 und 1.8.0_20-b26 getestet.

Antworten auf die Frage(2)

Ihre Antwort auf die Frage