Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8019476 Issues found by jsfunfuzz
  3. JDK-8019818

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

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • None
    • 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 ...

            sundar Sundararajan Athijegannathan
            lagergren Marcus Lagergren
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: