Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: P3
    • Resolution: Cannot Reproduce
    • Affects Version/s: 8u60
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
      None

      Description

      jjs> function f() { try { undefined } catch(x4) { var x4; } finally { eval() } } f()
      Exception in thread "main" java.lang.AssertionError
         at jdk.nashorn.internal.codegen.CodeGenerator.initLocals(CodeGenerator.java:1716)
         at jdk.nashorn.internal.codegen.CodeGenerator.enterBlock(CodeGenerator.java:1113)
         at jdk.nashorn.internal.ir.Block.accept(Block.java:177)
         at jdk.nashorn.internal.ir.LexicalContextNode$Acceptor.accept(LexicalContextNode.java:57)
         at jdk.nashorn.internal.ir.Block.accept(Block.java:425)
         at jdk.nashorn.internal.ir.FunctionNode.accept(FunctionNode.java:384)
         at jdk.nashorn.internal.ir.LexicalContextNode$Acceptor.accept(LexicalContextNode.java:57)
         at jdk.nashorn.internal.ir.LexicalContextExpression.accept(LexicalContextExpression.java:47)
         at jdk.nashorn.internal.ir.FunctionNode.accept(FunctionNode.java:59)
         at jdk.nashorn.internal.codegen.CompilationPhase.transformFunction(CompilationPhase.java:732)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                attila Attila Szegedi
                Reporter:
                lagergren Marcus Lagergren
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: