Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8028434

Line numbers for while node entry labels are wrong in Nashorn

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b119
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description

      e.g.

      function f() {
          var TestingStr = "a";
          while (TestingStr.length < 3) {
      TestingStr = "0" + TestingStr;
          }
      }
      f();

      the TestingStr.length < 3 statement says line 4 instead of line 3.

        Attachments

          Activity

            People

            Assignee:
            lagergren Marcus Lagergren
            Reporter:
            lagergren Marcus Lagergren
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: