Bug 26098

Summary: Wrong line number attribute.
Product: [Eclipse Project] JDT Reporter: Olivier Thomann <Olivier_Thomann>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: VERIFIED FIXED QA Contact:
Severity: critical    
Priority: P1 CC: john.arthorne
Version: 2.1   
Target Milestone: 2.1 M3   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

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. ***