This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 20774 - fastjavac generate wrong debug info in class
Summary: fastjavac generate wrong debug info in class
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P2 blocker (vote)
Assignee: Jan Kovar
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-02-22 08:47 UTC by tboerkel
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The test case. (887 bytes, text/plain)
2002-02-22 08:49 UTC, tboerkel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tboerkel 2002-02-22 08:47:45 UTC
Compile the attached DebuggerTest2.java with fastjavac.

1. set a breakpoint at line 11 and start the program

2. step (F8) through the code until line 18 is reached

3. the next step halts at line 20, but it really should be
11, because we have stepped through the if block and are
now at the for again, not in the else block. It does
not execute line 20, it just marks it as next line and that
is wrong.

This behavior occurs with the NetBeans debugger AND with JDB. But it does not 
occur, if the class was compiled with standard javac. So, it's fastjavac that 
causes the debuggers to display the wrong line.
Comment 1 tboerkel 2002-02-22 08:49:25 UTC
Created attachment 4784 [details]
The test case.
Comment 2 Jan Kovar 2002-02-27 11:20:00 UTC
Bug entered into Bugtraq with a number 4643841
Comment 3 Jan Becicka 2002-10-15 10:11:13 UTC
Fixed in fastjavac build #532
Comment 4 Quality Engineering 2003-07-01 13:20:30 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.
Comment 5 Quality Engineering 2007-09-20 12:01:13 UTC
Reorganization of java component