Bug 79975 - Search references in workspace for RuntimeException crashes
Summary: Search references in workspace for RuntimeException crashes
Status: RESOLVED DUPLICATE of bug 73784
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: Other Linux
: P3 normal (vote)
Target Milestone: 3.1 M4   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-02 05:08 EST by Robin Rosenberg CLA
Modified: 2004-12-02 06:46 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 Robin Rosenberg CLA 2004-12-02 05:08:58 EST
Searching for other types, including java.lang exceptions work. Marking 
RuntimeException in code however fails. This is what appears in the log: 
 
ENTRY org.eclipse.core.runtime 4 2 2004-12-02 10:53:05.620 
!MESSAGE An internal error occurred during: "Java Search". 
!STACK 0 
java.lang.StringIndexOutOfBoundsException: String index out of range: -1 
        at java.lang.String.substring(String.java:1768) 
        at 
org.eclipse.jdt.internal.core.search.matching.PossibleMatch.getQualifiedName(PossibleMatch.java:109) 
        at 
org.eclipse.jdt.internal.core.search.matching.PossibleMatch.<init>(PossibleMatch.java:41) 
        at 
org.eclipse.jdt.internal.core.search.matching.MatchLocator.locateMatches(MatchLocator.java:924) 
        at 
org.eclipse.jdt.internal.core.search.JavaSearchParticipant.locateMatches(JavaSearchParticipant.java:94) 
        at 
org.eclipse.jdt.internal.core.search.SearchBasicEngine.findMatches(SearchBasicEngine.java:196) 
        at 
org.eclipse.jdt.internal.core.search.SearchBasicEngine.search(SearchBasicEngine.java:382) 
        at 
org.eclipse.jdt.core.search.SearchEngine.search(SearchEngine.java:512) 
        at 
org.eclipse.jdt.internal.ui.search.JavaSearchQuery.run(JavaSearchQuery.java:125) 
        at 
org.eclipse.search2.internal.ui.InternalSearchUI$InternalSearchJob.run(InternalSearchUI.java:85) 
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66) 
 
I'm using 3.1M3
Comment 1 Frederic Fusier CLA 2004-12-02 06:46:05 EST

*** This bug has been marked as a duplicate of 73784 ***