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

line number not generated for first statement if it is on the same function declaration line

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 8
    • 8
    • core-libs
    • None
    • b98
    • generic
    • generic
    • Verified

    Description

      Example script: t.js

      function func1() { func2() }

      function func2() { throw new Error(); }

      try {
          func1()
      } catch (e) {
          print(e.stack)
      }


      Expected output:

      func2 @ x.js:3
      func1 @ x.js:1
      <program> @ x.js:6

      Output seen:

       
      func2 @ x.js:-1
      func1 @ x.js:-1
      <program> @ x.js:6

      Attachments

        Activity

          People

            sundar Sundararajan Athijegannathan
            sundar Sundararajan Athijegannathan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: