Details

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

    Backports

      Description

        jjs> function f() { var x; (x -= x = 0); } f()
        Exception in thread "main" java.lang.AssertionError: Attempted load of uninitialized slot 1 (as type int)
           at jdk.nashorn.internal.codegen.MethodEmitter.load(MethodEmitter.java:993)
           at jdk.nashorn.internal.codegen.MethodEmitter.load(MethodEmitter.java:955)
           at jdk.nashorn.internal.codegen.MethodEmitter.load(MethodEmitter.java:937)
           at jdk.nashorn.internal.codegen.CodeGenerator.loadIdent(CodeGenerator.java:318)
           at jdk.nashorn.internal.codegen.CodeGenerator.access$400(CodeGenerator.java:183)
           at jdk.nashorn.internal.codegen.CodeGenerator$1.enterIdentNode(CodeGenerator.java:725)
           at jdk.nashorn.internal.ir.IdentNode.accept(IdentNode.java:138)
           at jdk.nashorn.internal.codegen.CodeGenerator.loadExpression(CodeGenerator.java:722)
           at jdk.nashorn.internal.codegen.CodeGenerator.loadBinaryOperands(CodeGenerator.java:590)
           at jdk.nashorn.internal.codegen.CodeGenerator.access$6800(CodeGenerator.java:183)
           ...

        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: