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

REGRESSION: javac generates a spurious line number entry on } else {

    Details

    • Subcomponent:
    • Introduced In Version:
      5.0
    • Resolved In Build:
      b75
    • CPU:
      generic, x86
    • OS:
      generic, windows_xp

      Description

      I believe this started with b26 and is caused by the fix for 4870514.
      A testcase is in
          /net/jano.sfbay/export/disk20/serviceability/ws/regressionTestsInWaiting/LineNumberOnBraceTest.java

      In this construct:
         if (...) {
        stmt1
         } else {
      stmt2
        }
        stmt3

      If a debugger user is stopped on stmt1 and does a 'next',
      the debugger should stop at stmt3. This bug causes it
      to stop instead on the } else { line. This forces the user
      to do a second 'next' to get to the stmt3 line.
      ###@###.### 10/5/04 00:35 GMT

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                wtaosunw Wei Tao (Inactive)
                Reporter:
                jjh James Holmlund (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: