Bug 39259 - While statement has wrong source position
Summary: While statement has wrong source position
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0 M2   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-24 05:24 EDT by Dirk Baeumer CLA
Modified: 2003-07-16 06:03 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Baeumer CLA 2003-06-24 05:24:16 EDT
N20030624 (Timestamp: 200306240010)

In the following example the range of the inner while statemet is [143,37]. 
Correct range is [143,22].

package validSelection;

public class A_test253 {
	public boolean b() {
		return true;
	}
	
	public void foo() {
		while(b())
			/*]*/while(b())
				foo();
		/*]*/foo();		
	}	
}
Comment 1 Philipe Mulet CLA 2003-06-24 05:32:11 EDT
Suspecting that there is some collision on our endStatementPosition...
Comment 2 Olivier Thomann CLA 2003-06-24 09:01:33 EDT
I will investigate.
Comment 3 Olivier Thomann CLA 2003-06-24 10:00:38 EDT
Fixed and released in HEAD.
Regression tests added.
Comment 4 David Audel CLA 2003-07-16 06:03:30 EDT
Verified.