Bug 10798

Summary: DOM/AST; wrong positions
Product: [Eclipse Project] JDT Reporter: Dirk Baeumer <dirk_baeumer>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.0 M4   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Dirk Baeumer CLA 2002-03-05 13:34:32 EST
JDTCore 20020305

In the example 

package validSelection;

public class A_test201 {
	public void foo() {/*[*/
		foo();
	/*]*/} 
}

The source position of the MethodDeclaration's block is [70/21]. It should be 
[69/23].
Comment 1 Olivier Thomann CLA 2002-03-06 10:23:23 EST
So if I well understood, you expect the method declaration block positions to 
be:
startPosition = position of the beginning of the '{'.
endPosition = position of the end of 
the '}'.
Comment 2 Olivier Thomann CLA 2002-03-06 10:40:57 EST
Fixed and released in HEAD.