Project: JDT
Bug 78233 [search] Cancelling "Open Type" search prevents future searching
Reported: 2004-11-09 16:59:23 | Status: resolved fixed

Build 20041109 Linux-GTK What I did: 1. Started checking out org.eclipse.jface plugin from CVS. 2. When the checkout completed (but before the build finished), click the Open Type button. 3. A "Searching" progress bar appeared and started cranking away. 4. I got impatient and clicked Cancel. 5. Afterwards, every time I clicked Open Type, the "Searching" dialog appeared and just sat there at 100% progress, doing nothing. Restarting the workbench was the only way I managed to get Open Type working again. I found the following stack dump in the console: org.eclipse.core.runtime.OperationCanceledException at java.lang.Throwable.<init>(Throwable.java) at org.eclipse.core.runtime.OperationCanceledException.<init>(OperationC anceledException. java:22) at org.eclipse.jdt.internal.core.search.matching.InternalSearchPattern.f indIndexMatches(InternalSearchPattern.java) at org.eclipse.jdt.internal.core.search.matching.MatchLocator.findIndexM atches(MatchLocator. java) at org.eclipse.jdt.internal.core.search.PatternSearchJob.search(PatternS earchJob.java) at org.eclipse.jdt.internal.core.search.PatternSearchJob.execute(Pattern SearchJob.java:64) at org.eclipse.jdt.internal.core.search.processing.JobManager.performCon currentJob(JobManager.java) at org.eclipse.jdt.internal.core.search.SearchBasicEngine.searchAllTypeN ames(SearchBasicEngine.java:509) at org.eclipse.jdt.core.search.SearchEngine.searchAllTypeNames(SearchEng ine.java:571) at org.eclipse.jdt.internal.corext.util.AllTypesCache.search(AllTypesCac he.java:547) at org.eclipse.jdt.internal.corext.util.AllTypesCache$TypeCacher.doSearc hTypes(AllTypesCache.java:197) at org.eclipse.jdt.internal.corext.util.AllTypesCache$TypeCacher.run(All TypesCache.java:159)

Files changed in fix:
org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/AllTypesCache.java