Bug 373187 - Eclipse fails to detect declaration of some methods
Summary: Eclipse fails to detect declaration of some methods
Status: CLOSED DUPLICATE of bug 73957
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.8   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-03 14:16 EST by valentin Mising name CLA
Modified: 2012-03-06 08:54 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description valentin Mising name CLA 2012-03-03 14:16:23 EST
Build Identifier: Version: 3.8.0 Build id: I20120125-1800

Take, for instance, CallHierarchyContentProvider.getChildren(). It has some calls to fManager.getChilderen(). Eclipse does not navigate to the definition despite it can open the DeferredTreeContentManager, the class of fManager.


Reproducible: Always
Comment 1 valentin Mising name CLA 2012-03-03 14:17:44 EST
This does not happen in 3.7
Comment 2 Deepak Azad CLA 2012-03-04 22:08:09 EST
(In reply to comment #0)
> Take, for instance, CallHierarchyContentProvider.getChildren(). It has some
> calls to fManager.getChilderen(). Eclipse does not navigate to the definition
> despite it can open the DeferredTreeContentManager, the class of fManager.

How are you trying to navigate - Open Declaration (F3) ? Or something else ?

PS: F3 works for me.
Comment 3 valentin Mising name CLA 2012-03-05 08:02:03 EST
I tried F2/F3, mouse hyperlinking - nothing works. It looks like it cannot resolve the method. But it does not report the error either. And, I think it is a bug, therefore.

This situation is quite often. For instance, I just Opened CallHierarchyLabelProvider.getStyledText(Object element) and cannot jump to super.getStyledText(wrapper.getMember()), at line 106. Though, clicking 'super', editor opens the super-class. Similarly, I cannot navigate to wrapper.getMember(), though it jumps to the wrapper. To reproduce, open CallHierarchyLabelProvider in a new workspace. You will need org.eclipse.jdt.ui_3.8.0.v20120125-1408.jar with org.eclipse.jdt.ui.source_3.8.0.v20120125-1408.jar. It sufficient to add org.eclipse.jdt.core_3.8.1.v20120125-1544.jar into Build Path to resolve the problem. But in other cases, like with my plugin, this is not sufficient.
Comment 4 Markus Keller CLA 2012-03-06 08:54:35 EST
This happens if the code you're browsing is from an indirect dependency of a project. See bug 73957 comment 50 onwards for an analysis.

*** This bug has been marked as a duplicate of bug 73957 ***