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

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

XMLWordPrintable

    • 5.0
    • b75
    • generic, x86
    • generic, windows_xp

      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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: