Community
Participate
Working Groups
Using Eclipse 2.0, Build F1 (buildid: 20020521) on Windows 2000. NOTE: You need to have something in your workspace for this error to come up. I just imported org.eclipse.core.boot and this happens. In Search->Java Search, searching for "*" with all the default options set gives an error message like: "An error occured during the search operation: -1". The default options are: Case sensitive: No Search For: Type Limit To: References Scope: Workspace Searching for "*" anywhere else seems to behave properly (considering the input).
*** Bug 17303 has been marked as a duplicate of this bug. ***
The problem occurs in JDT CORE. Caused by: java.lang.ArrayIndexOutOfBoundsException: -1 at org.eclipse.jdt.internal.core.search.matching.TypeReferencePattern.indexEntryPre fix(TypeReferencePattern.java:140) at org.eclipse.jdt.internal.core.search.matching.AndPattern.findIndexMatches (AndPattern.java:41) at org.eclipse.jdt.internal.core.search.matching.MultipleSearchPattern.findIndexMat ches(MultipleSearchPattern.java:40) at org.eclipse.jdt.internal.core.search.matching.SearchPattern.findIndexMatches (SearchPattern.java:1228) 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:254) at org.eclipse.jdt.core.search.SearchEngine.search (SearchEngine.java:398) at org.eclipse.jdt.internal.ui.search.JavaSearchOperation.execute (JavaSearchOperation.java:86) at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run (WorkspaceModifyOperation.java:64) at org.eclipse.core.internal.resources.Workspace.run (Workspace.java:1361) at org.eclipse.ui.actions.WorkspaceModifyOperation.run (WorkspaceModifyOperation.java:78) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run (ModalContext.java:98)
TypeReferencePattern.segments was created empty when it should have been a char array containing only '*'. Fixed.
Verified in F2.
Verified.