Bug 156688 - ISourceReference.getSourceRange() not following specification
Summary: ISourceReference.getSourceRange() not following specification
Status: VERIFIED DUPLICATE of bug 18311
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.4 M1   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-08 09:31 EDT by Martin Aeschlimann CLA
Modified: 2007-08-03 10:22 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 Martin Aeschlimann CLA 2006-09-08 09:31:57 EDT
20060809

The Javadoc of ISourceReference.getSourceRange() specs:
 * @return the source range, or <code>null</code> if this element has no 
 *   associated source code

The implemenation in BinaryMember.getSourceRange() is:
	SourceMapper mapper= getSourceMapper();
	if (mapper != null) {
           ...
	} else {
		return SourceMapper.UNKNOWN_RANGE;
	}
and SourceMapper.UNKNOWN_RANGE is 'new SourceRange(-1, 0)'
Comment 1 Martin Aeschlimann CLA 2006-09-10 03:21:50 EDT

*** This bug has been marked as a duplicate of 130161 ***
Comment 2 Frederic Fusier CLA 2007-08-03 10:21:47 EDT
Set as duplicate of original bug...

*** This bug has been marked as a duplicate of bug 18311 ***
Comment 3 Frederic Fusier CLA 2007-08-03 10:22:04 EDT
Verified for 3.4M1 using build I20070802-0800.