Bug 44289 - Search broken
Summary: Search broken
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 critical (vote)
Target Milestone: 3.0 M4   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 44349 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-10-07 06:39 EDT by Dirk Baeumer CLA
Modified: 2003-10-14 10:18 EDT (History)
1 user (show)

See Also:


Attachments
The used JUnit version (142.60 KB, application/octet-stream)
2003-10-07 06:44 EDT, Dirk Baeumer CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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