Bug 26098 - Wrong line number attribute.
Summary: Wrong line number attribute.
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P1 critical (vote)
Target Milestone: 2.1 M3   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 26420 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-11-13 09:13 EST by Olivier Thomann CLA
Modified: 2002-11-15 10:33 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Thomann CLA 2002-11-13 09:13:42 EST
Using 1112, some line number attributes point to the first line in the source code.
The line delimiter table should be corrupted.
Critical. Need to be fixed asap.
Comment 1 Jerome Lanneluc CLA 2002-11-13 09:52:33 EST
To reproduce:
1. Create the following cu:
public class X {
	void bar(int i) {
	}
	void foo() {
		int i = 1; // breakpoint here
		bar(i);
	}
	public static void main(String[] args) {
		new X().foo();
	}
}
2. Put a breakpoint where indicated
3. Debug
4. When breakpoint is hit, step over
Observe: The debugger is poistioned to the begining of the cu.
Comment 2 Philipe Mulet CLA 2002-11-13 10:44:46 EST
Problem comes from fix for bug 25894, where implicit this reference got tagged 
with -1 source start (instead of 0 in the past).

It exposes the fact we were recording source line attributes for implicit 
references, which we shouldn't have done anyway.

Changing 3 things:
- revert to setting source start to 0 for implicit this ref
- do not record source line attribute for implicit this
- use a bit to recognize an implicit this reference
Comment 3 Philipe Mulet CLA 2002-11-14 05:36:11 EST
Fixed
Comment 4 David Audel CLA 2002-11-14 07:50:37 EST
Verified.
Comment 5 John Arthorne CLA 2002-11-15 10:33:54 EST
*** Bug 26420 has been marked as a duplicate of this bug. ***