Bug 5705 - Wrong positions for ClassCastLiteral
Summary: Wrong positions for ClassCastLiteral
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 M1   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 4914
  Show dependency tree
 
Reported: 2001-11-09 06:46 EST by Dirk Baeumer CLA
Modified: 2002-01-11 09:22 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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