Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8u60
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b43
    • CPU:
      generic
    • OS:
      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

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

                  Dates

                  • Created:
                    Updated:
                    Resolved: