Bug 44289

Summary: Search broken
Product: [Eclipse Project] JDT Reporter: Dirk Baeumer <dirk_baeumer>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: VERIFIED FIXED QA Contact:
Severity: critical    
Priority: P3 CC: martinae
Version: 3.0   
Target Milestone: 3.0 M4   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
The used JUnit version none

Description Dirk Baeumer CLA 2003-10-07 06:39:50 EDT
ZRH build input + JDT/Core v373c

- create fresh workspace
- create JUnit project with output folder bin (the output folder
  seems to be important. Problem doesn't show up with default
  output folder)
- load JUnit 3.8.1 (I attach it to the PR)
- select TestCase in package explorer and do a search for references

observe:

- you get an dialog informing you about inexact matches. Strange ?
- the result only contains parts of the matches. For example all "extends 
  TestCase" are missing (e.g. SimpleTest, ....)

Refactoring is heavily affected by this problem.
Comment 1 Dirk Baeumer CLA 2003-10-07 06:44:00 EDT
Created attachment 6346 [details]
The used JUnit version
Comment 2 Philipe Mulet CLA 2003-10-07 08:12:32 EDT
Refactoring scenario was bogus (left over of classfiles in source folders), 
however we should not have been indexing them and failed later on.

Fixed in v_374.
Comment 3 Dirk Baeumer CLA 2003-10-07 08:31:14 EDT
Philippe, there isn't any bogus refactoring scenario involved here. I started 
from a fresh workspace and did a search which reported bogus results.
Comment 4 Philipe Mulet CLA 2003-10-07 08:39:59 EDT
Oops indeed no refactoring involved, but still the test case did contain extra 
classfiles which caused grief.
Comment 5 Dirk Baeumer CLA 2003-10-07 09:02:41 EDT
Yes, there are some directories in the zip file which contain class files as 
well. The problem didn't show up when using v373b since I closed and reopen 
the project before doing the search. May be that makes a difference.
Comment 6 Jerome Lanneluc CLA 2003-10-07 09:13:36 EDT
Fix causes a NPE in DeltaProcessor. Reopening.
Comment 7 Jerome Lanneluc CLA 2003-10-07 09:46:38 EDT
Fixed NPE by caching the entry kind earlier in the RootInfo.
Comment 8 Jerome Lanneluc CLA 2003-10-07 13:26:20 EDT
Old indexes may contain invalid entry for .class files in source packages. 
Incremented IIndexConstants.SIGNATURE so as to recompute indexes.
Comment 9 Jerome Lanneluc CLA 2003-10-07 18:02:06 EDT
*** Bug 44349 has been marked as a duplicate of this bug. ***
Comment 10 David Audel CLA 2003-10-14 10:18:06 EDT
Verified