Bug 5705

Summary: Wrong positions for ClassCastLiteral
Product: [Eclipse Project] JDT Reporter: Dirk Baeumer <dirk_baeumer>
Component: CoreAssignee: David Audel <david_audel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: philippe_mulet
Version: 2.0   
Target Milestone: 2.0 M1   
Hardware: PC   
OS: Windows 2000   
Whiteboard:
Bug Depends on:    
Bug Blocks: 4914    

Description Dirk Baeumer CLA 2001-11-09 06:46:11 EST
class A {
	Object m(){
		return /*]*/A.class/*[*/;
	}
}

The position (start/end) of A.class is [41,45] but it should be [39,45]
Comment 1 Olivier Thomann CLA 2001-11-22 16:42:25 EST
It is easy to fix the source start to be the source start of the type reference 
in front of the .class. But the implementation of the source end is boggus as 
well. It does a source start + 4 which doesn't handle unicode cases.
I will try to fix both.
Comment 2 Olivier Thomann CLA 2001-11-26 17:40:17 EST
Submitted code to David. He will adjust the completion with the new positions.
Please release code when the completion is up to date.
Comment 3 David Audel CLA 2001-11-28 07:44:19 EST
Code assist is up to date