Summary: | Wrong line number attribute. | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Olivier Thomann <Olivier_Thomann> |
Component: | Core | Assignee: | 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
2002-11-13 09:13:42 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. 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 Fixed Verified. |