Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 516378

Summary: org.eclipse.jdt.internal.core.BinaryMember#getNameRange() should return null instead of UNKNOWN_RANGE
Product: [Eclipse Project] JDT Reporter: Olivier Thomann <Olivier_Thomann>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 4.7   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: stalebug

Description Olivier Thomann CLA 2017-05-09 14:51:41 EDT
The documentation of getNameRange() is pretty clear. You either get a valid range or null. The UNKNOWN_RANGE is a valid value for getSourceRange() but not for getNameRange().
Fix is trivial. It could also be seen as a doc bug, but we should be consistent.
Comment 1 Eclipse Genie CLA 2020-03-12 15:33:56 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.