Bug 19303 - Open type does not show all type.
Summary: Open type does not show all type.
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.0 F3   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 15972 18680 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-06-05 09:17 EDT by David Audel CLA
Modified: 2002-06-13 07:45 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Audel CLA 2002-06-05 09:17:13 EDT
Sometimes rt.jar is not indexed. The result is that all the search request does 
not show the types in rt.jar.
Comment 1 David Audel CLA 2002-06-05 09:27:19 EDT
To show the the problem you need the follow these steps
1) put a break point just after startIndexing() in JavaCore#startup()
2) put a break point inside IndexManager#indexAll()
3) launch eclipse in the debugger
4) steps inside the indexAll method, you can see that rt.jar is not indexed.
Comment 2 Philipe Mulet CLA 2002-06-05 11:19:47 EDT
Several issues on this front:

1. if the project isn't opened yet, the indexer will not attempt to resolve the 
variable entries on the classpath, and thus miss potential libraries in this 
way. The rational is that it wants to avoid running CP initializers 
(potentially) in the indexer thread, since it may cause some deadlocks.
This is mostly affected the early index consistency check.

2. a recent change to the IndexSelector is causing it to always ignore the index
on disk, if it hasn't been loaded into memory already (likely through the index 
consistency check - even after fix for 1). This change wasn't in F2 builds, but 
introduced since then (see bug 18621).

Need the two fixes.
Comment 3 Philipe Mulet CLA 2002-06-05 11:21:47 EDT
Fixed both:

1. indexAll(IProject) now simply resolves the classpath and will find all 
referenced libs.
2. senders are all ensuring that the corresponding CP have been resolved at 
least once before
3. IndexSelector is now able to load the existing file index BUT not creating 
an empty one if missing (was bug 18621)
Comment 4 Philipe Mulet CLA 2002-06-07 12:31:47 EDT
*** Bug 18680 has been marked as a duplicate of this bug. ***
Comment 5 Philipe Mulet CLA 2002-06-10 10:16:15 EDT
*** Bug 15972 has been marked as a duplicate of this bug. ***
Comment 6 David Audel CLA 2002-06-13 07:45:14 EDT
Verified.