Bug 25859 - Error doing Java Search
Summary: Error doing Java Search
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P2 major (vote)
Target Milestone: 2.1 M3   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-07 15:57 EST by Lynne Kues CLA
Modified: 2002-11-14 06:23 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lynne Kues CLA 2002-11-07 15:57:03 EST
Build 20021105

Start Search by clicking Search tool bar item.
Java Search 
Search string = "IMenuCreator", Case Sensitive = NO, Search For = Type, Limit 
To = Implementors, Scope = Workspace.
Search.

I get the following somewhat useless message:

     "An error occurred during the search operation.
     255"

NOTE that if I specify Case Sensitive = YES, I do not get the error.  Also, if 
I select IMenuCreator in a CU and execute Search-->Implementors via the context 
menu, I do not get the error.
Comment 1 Dani Megert CLA 2002-11-08 03:04:57 EST
Is there something in .log?
Comment 2 Lynne Kues CLA 2002-11-08 09:47:40 EST
Yes, sorry I didn't even bother to look...

!ENTRY org.eclipse.jdt.ui 4 1 Nov 07, 2002 15:58:29.665
!MESSAGE Internal Error
!STACK 0
java.lang.reflect.InvocationTargetException: 
java.lang.ArrayIndexOutOfBoundsException: 255
	at 
org.eclipse.jdt.internal.core.search.matching.SuperTypeReferencePattern.decodeIn
dexEntry(SuperTypeReferencePattern.java(Compiled Code))
	at 
org.eclipse.jdt.internal.core.search.matching.SearchPattern.findIndexMatches
(SearchPattern.java(Compiled Code))
	at 
org.eclipse.jdt.internal.core.search.matching.SuperTypeReferencePattern.findInde
xMatches(SuperTypeReferencePattern.java:120)
	at 
org.eclipse.jdt.internal.core.search.matching.SearchPattern.findIndexMatches
(SearchPattern.java:1149)
	at org.eclipse.jdt.internal.core.search.PatternSearchJob.search
(PatternSearchJob.java:144)
	at org.eclipse.jdt.internal.core.search.PatternSearchJob.execute
(PatternSearchJob.java:93)
	at 
org.eclipse.jdt.internal.core.search.processing.JobManager.performConcurrentJob
(JobManager.java:262)
	at org.eclipse.jdt.core.search.SearchEngine.search
(SearchEngine.java:406)
	at org.eclipse.jdt.internal.ui.search.JavaSearchOperation.execute
(JavaSearchOperation.java:86)
	at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run
(WorkspaceModifyOperation.java:65)
	at org.eclipse.core.internal.resources.Workspace.run
(Workspace.java:1439)
	at org.eclipse.ui.actions.WorkspaceModifyOperation.run
(WorkspaceModifyOperation.java:79)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run
(ModalContext.java:95)
Comment 3 Jerome Lanneluc CLA 2002-11-12 05:07:16 EST
Underlying index didn't support words greater than 255. 

Fixed by allowing words up to 65535.
Comment 4 David Audel CLA 2002-11-14 06:23:43 EST
Verified.