Summary: | [search] correct results are missing in java search | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Genady Beryozkin <eclipse> | ||||
Component: | Core | Assignee: | Frederic Fusier <frederic_fusier> | ||||
Status: | VERIFIED FIXED | QA Contact: | |||||
Severity: | normal | ||||||
Priority: | P3 | ||||||
Version: | 3.0.1 | ||||||
Target Milestone: | 3.1 M5 | ||||||
Hardware: | PC | ||||||
OS: | Windows XP | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Genady Beryozkin
2004-12-17 14:38:37 EST
Would it possible that you zip your project and attach it to this bug? Thanks It seems that it's a ClasspathSourceDirectory issue. There's a Plan.java in excluded org/mmtk/vm folder of source folder src which have SemiSpace as superclass. While resolve import of Plan, method findClass(String, String, String) of ClasspathSourceDirectory class does not skip excluded folder while getting file. Superclasses hierarchy of Plan is invalid and that's explain why Search cannot find correct references. Jerome, I'll send you all necessary files to reproduce the problem... Created attachment 16897 [details]
Proposed patch
I was able to reproduce. Indeed the exclusion pattern was not taken into
account. Attached is a proposed fix.
Moving back to Frederic to add a regression test. Released in HEAD. Test case added in JavaSearchBugsTests Verifid in I20050214-0927 for 3.1M5 |