Eclipse type hierarchy doesn't always work

When I want to see an implementation of an interface using F4 (type hierarchy) or ctrl + t (fast hierarchy) or method implementation, I donโ€™t see this! The problem is that it works 90%, but I have few cases where the interface and implementation are in the same package, and eclipse does not recognize it using the type hierarchy. Any suggestions? Got Eclipse Indigo SR2.

+24
java eclipse eclipse-indigo
May 03 '13 at 7:51
source share
3 answers

I had the same problem and fixed it by deleting the Eclipse index cache files located in .metadata / .plugins / org.eclipse.jdt.core. Delete all .index files and saveIndexNames.txt. Do this until Eclipse starts up and reboots. This fixed the problem for me.

+33
Jun 20 '13 at 14:34
source share

Use clean Eclipse mode to remove caches, see here: How to run eclipse in clean mode? and what happens if we do this?

It is sometimes useful to use clean mode to prevent these problems.

+1
Nov 07 '16 at 11:02
source share

I also had this problem and fixed it. The reason for this problem is that when the eclipse works, I reinstall the JDK from 1.8 to 1.6. So I close eclipse, install JDK 1.8 again, then this is normal! May it be useful to others.

-3
Sep 08 '15 at 10:52
source share



All Articles