This no longer goes to codegen but produces syntax error - please verify that this is correct

XMLWordPrintable

    • Type: Sub-task
    • Resolution: Not an Issue
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: core-libs
    • None

      jjs> Function("/*infloop*/while(((function ()4.)([z1,,], [,,]) - true++))switch(1e+81.x) { default: break; \u0009 }");
      Compiling threw: java.lang.AssertionError: expecting equivalent types on stack but got double and int
      java.lang.AssertionError: expecting equivalent types on stack but got double and int
          at jdk.nashorn.internal.codegen.MethodEmitter.get2n(MethodEmitter.java:1600)
          at jdk.nashorn.internal.codegen.MethodEmitter.sub(MethodEmitter.java:1622)
          at jdk.nashorn.internal.codegen.CodeGenerator$29.op(CodeGenerator.java:2836)
          at jdk.nashorn.internal.codegen.CodeGenerator$BinaryArith.evaluate(CodeGenerator.java:2618)
          at jdk.nashorn.internal.codegen.CodeGenerator.enterSUB(CodeGenerator.java:2838)
          at jdk.nashorn.internal.ir.visitor.NodeOperatorVisitor.enterBinaryNode(NodeOperatorVisitor.java:191)
          at jdk.nashorn.internal.ir.BinaryNode.accept(BinaryNode.java:164)
          at jdk.nashorn.internal.codegen.CodeGenerator$1.enterDefault(CodeGenerator.java:408)
          at jdk.nashorn.internal.ir.visitor.NodeVisitor.enterBinaryNode(NodeVisitor.java:177)
          at jdk.nashorn.internal.ir.BinaryNode.accept(BinaryNode.java:164)
          at ...

            Assignee:
            Sundararajan Athijegannathan
            Reporter:
            Marcus Lagergren
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: