Bug 45222 - Search not finding references to method in inner class
Summary: Search not finding references to method in inner class
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0 M5   Edit
Assignee: Kent Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-20 13:15 EDT by Peter Koves CLA
Modified: 2003-11-21 17:04 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Koves CLA 2003-10-20 13:15:32 EDT
public interface Chart {
  ...
  final class Util {
     ...
     public static void stringify(Map items) {...}
     ...
  }
  ...
}

public Class SomeOtherClass {
   ...
   public void createChart(...,Map items,...) {
      Chart.Util.stringify(items);
      ...
   }
   ...
}

When searching for references of stringify nothing is found.
First noticed in M4.
Comment 1 Kent Johnson CLA 2003-10-21 14:32:02 EDT
I tried to reproduce, but it worked fine.

Can you reproduce this in a new workspace? Or does it only happen in your old 
one?
Comment 2 Peter Koves CLA 2003-10-21 18:38:56 EDT
I tried in the same workspace, but with new project. I copied just the 
interface and the referring class into the new project.

The problem is not reproducible in the new project (that is the search finds 
the reference). However in the original project, the reference is still not 
being found.

Perhaps a rebuild of the project would cure things. I have not done that yet 
in case you want to investigate this further...
Comment 3 Kent Johnson CLA 2003-10-22 11:05:13 EDT
How old is your workspace?

I suspect your index files have become stale for some reason. We can try 
reindexing everything to see if the problem goes away.
Comment 4 Peter Koves CLA 2003-10-22 20:43:13 EDT
The workspace itself is quite old (reaching back to 2.0). The project that 
contains the classes in questionhowever is pretty new (at most a few weeks).

How would one go about this reindexing?
Comment 5 Kent Johnson CLA 2003-10-23 10:55:37 EDT
To force reindexing, go into the 
directory .metadata\.plugins\org.eclipse.jdt.core of your workspace and delete 
the .index files.

When you restart your workspace, each index will be recreated.
Comment 6 Peter Koves CLA 2003-10-27 08:35:22 EST
I was having too many problems with M4, so I have moved back to M3. The search 
problem cannot be reproduced in M3. Let me know If you want me to try the 
reindexing in M4. Now that M4 is supported by the Sysdeo Tomcat plugin, I am 
going to try M4 again.
Comment 7 Kent Johnson CLA 2003-11-21 17:04:59 EST
I think this is a case of your index files becoming out of date.

If it reoccurs, please reopen the PR.