XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • 8
    • core-libs
    • None
    • b100
    • generic
    • generic
    • Verified

      jjs> Function("switch(gc()) { case \ntrue: case 1: }");
      Compiling threw: java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.Integer
      java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.Integer
          at jdk.nashorn.internal.codegen.CodeGenerator.enterSwitchNode(CodeGenerator.java:1811)
          at jdk.nashorn.internal.ir.SwitchNode.accept(SwitchNode.java:104)
          at jdk.nashorn.internal.ir.LexicalContextNode.accept(LexicalContextNode.java:69)
          at jdk.nashorn.internal.ir.Node.accept(Node.java:346)
          at jdk.nashorn.internal.ir.Block.accept(Block.java:136)
          at jdk.nashorn.internal.ir.LexicalContextNode.accept(LexicalContextNode.java:69)
          at jdk.nashorn.internal.ir.FunctionNode.accept(FunctionNode.java:285)
          at jdk.nashorn.internal.ir.LexicalContextNode.accept(LexicalContextNode.java:69)
          at jdk.nashorn.internal.codegen.CodeGenerator$1.enterFunctionNode(CodeGenerator.java:402)
          at jdk.nashorn.internal.ir.FunctionNode.accept(FunctionNode.java:284)
          at ...

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

              Created:
              Updated:
              Resolved: