Bug 68146 - Search should not populate Java model cache
Summary: Search should not populate Java model cache
Status: RESOLVED FIXED
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.1   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-22 05:25 EDT by Jerome Lanneluc CLA
Modified: 2004-09-06 10:25 EDT (History)
0 users

See Also:


Attachments
Proposed patch (5.17 KB, patch)
2004-06-22 05:31 EDT, Jerome Lanneluc CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jerome Lanneluc CLA 2004-06-22 05:25:41 EDT
I200406192000

1. Start new workspace with javamodel trace on
2. Import all SDK plugins as linked projects
3. Open java.lang.Object
4. Search for references to Object in workspace
Observe: A lot of .class files are opened and put in the Java model cache
Comment 1 Jerome Lanneluc CLA 2004-06-22 05:31:50 EDT
Created attachment 12632 [details]
Proposed patch
Comment 2 Jerome Lanneluc CLA 2004-07-01 10:32:44 EDT
Changed NameLookup.acceptType(IType, int) to return true if all flags were 
requested.
Changed ClassFileMatchLocator.locateMatches(...) to pass in the info (a 
ClassFileReader) to cacheBinaryType(...) so that the element doesn't have to 
be opened.
Comment 3 Philipe Mulet CLA 2004-07-01 10:47:33 EDT
Please backport to 3.0.1
Comment 4 Philipe Mulet CLA 2004-07-01 11:03:36 EDT
Targeting 3.0.1
Comment 5 Jerome Lanneluc CLA 2004-07-01 12:14:57 EDT
Backported fix to R3_0_maintenance
Comment 6 David Audel CLA 2004-09-06 10:25:05 EDT
Verified for 3.0.1 RC1