Details

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

      Description

      jjs> function f() { try { undefined } catch(x1 if Object) { } catch(x2) { (function(){x2}) } } f()
      Exception in thread "main" java.lang.AssertionError
         at jdk.nashorn.internal.codegen.CodeGenerator.enterBlock(CodeGenerator.java:1115)
         at jdk.nashorn.internal.codegen.CodeGenerator.enterTryNode(CodeGenerator.java:3045)
         at jdk.nashorn.internal.ir.TryNode.accept(TryNode.java:110)
         at jdk.nashorn.internal.ir.Node.accept(Node.java:265)
         at jdk.nashorn.internal.ir.Block.accept(Block.java:178)
         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.codegen.CodeGenerator.enterBlockStatement(CodeGenerator.java:1583)
         at jdk.nashorn.internal.ir.BlockStatement.accept(BlockStatement.java:86)
         at jdk.nashorn.internal.ir.Node.accept(Node.java:265)
         ...

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: