Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse 3.8: Call Hierarchy misses callers from jars

The Call Hierarchy view in Eclipse JDT 3.8 seems to show only the references / callers from the own classes in the current project / working set.
Callers from jars / libraries are not shown any more.

In contrast, in eclipse <= 3.6 this showed all callers, including the ones from libraries.

Example:

  1. CTRL-SHIFT-T; open DocumentBuilderFactory
  2. In the method outline, right click at setAttribute()
  3. Select Call Hierarchy from context menu
  4. Ensure Show Caller Hierarchy is enabled in the Call hierarchy settings.

Eclipse 3.8 shows no matches, while Eclipse 3.6 shows (at least) one match (tested with jdk 6)

(In the "Search in" setting, all options are checked)

Question:
Is there a way to enable the previous behavior in eclipse 3.8 or is it a bug?


(same issue can be seen in the "Show Callee Hierachy" mode - it does not show any internal callees any more from a jdk class, e.g. compare callees of ArrayList.get())

like image 232
MRalwasser Avatar asked Nov 14 '12 10:11

MRalwasser


1 Answers

In Call Hierarchy View, click on the drop down arrow, select 'Search in' and check the 'Application libraries' box.

like image 70
ralph961 Avatar answered Oct 30 '22 14:10

ralph961