Bug 10798 - DOM/AST; wrong positions
Summary: DOM/AST; wrong positions
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.0 M4   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-05 13:34 EST by Dirk Baeumer CLA
Modified: 2002-03-13 11:26 EST (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 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.