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

Line numbers for while node entry labels are wrong in Nashorn

    XMLWordPrintable

Details

    • b119
    • generic
    • generic
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: