Details

    • Sub-task
    • Resolution: Fixed
    • P3
    • 9
    • 8u60
    • core-libs
    • None
    • b43
    • generic
    • generic

    Backports

      Description

        jjs> try { function f(){switch(0) { case 8: for (var x in {}) {x} case 8: }} f() } catch(e) { e.printStackTrace() }
        java.lang.NullPointerException
           at jdk.nashorn.internal.codegen.MethodEmitter.markDeadSlots(MethodEmitter.java:1154)
           at jdk.nashorn.internal.codegen.MethodEmitter.markDeadLocalVariable(MethodEmitter.java:1149)
           at jdk.nashorn.internal.codegen.MethodEmitter.beforeJoinPoint(MethodEmitter.java:2494)
           at jdk.nashorn.internal.codegen.CodeGenerator.enterSwitchNode(CodeGenerator.java:2932)
           at jdk.nashorn.internal.ir.SwitchNode.accept(SwitchNode.java:106)
           at jdk.nashorn.internal.ir.LexicalContextNode$Acceptor.accept(LexicalContextNode.java:57)
           at jdk.nashorn.internal.ir.LexicalContextStatement.accept(LexicalContextStatement.java:55)
           at jdk.nashorn.internal.ir.SwitchNode.accept(SwitchNode.java:38)
           at jdk.nashorn.internal.ir.Node.accept(Node.java:265)
           at jdk.nashorn.internal.ir.Block.accept(Block.java:178)

        Attachments

          Issue Links

            Activity

              People

                attila Attila Szegedi
                lagergren Marcus Lagergren
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: