Bug 32628

Summary: Too much time finding out there is no source during search
Product: [Eclipse Project] JDT Reporter: Jerome Lanneluc <jerome_lanneluc>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.1   
Target Milestone: 2.1 RC2   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Jerome Lanneluc CLA 2003-02-24 07:16:06 EST
Build 20030221

Java search is using the SourceMapper to find out if a class file as a 
corresponding source. However in the case a source zip is attached to a jar 
file, but the source zip is incomplete (case or src.zip for rt.jar), potential 
matches in class files don't have a corresponding source. In this case too much 
time is spent in the SourceMapper trying to compute a root path for these class 
files.
Comment 1 Olivier Thomann CLA 2003-02-24 09:16:56 EST
The solution consists in computing all root paths when the first type is
requested. Then there is no further computation in case the source doesn't exist.
Comment 2 Olivier Thomann CLA 2003-02-25 14:16:45 EST
Fixed and released in 2.1 stream.
Comment 3 Olivier Thomann CLA 2003-03-10 11:59:15 EST
Verified in source code. There is only one computation of root paths. I checked 
that this is correct in the tests.