Bug 89477 - [1.5][select] ArrayStoreException in SelectionEngine
Summary: [1.5][select] ArrayStoreException in SelectionEngine
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M6   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-30 04:08 EST by Markus Keller CLA
Modified: 2005-03-31 12:17 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 Markus Keller CLA 2005-03-30 04:08:33 EST
I20050329-2000

I found this in the console (was not in the log; I'll file a bug for jdt.text
that this should be logged). I was experimenting with 1.5 code when this
happened. Sorry, no steps to reproduce.

Exception in thread "Text Viewer Hover Presenter" java.lang.ArrayStoreException
        at java.lang.System.arraycopy(Native Method)
        at
org.eclipse.jdt.internal.codeassist.SelectionEngine.acceptType(SelectionEngine.java:211)
        at
org.eclipse.jdt.internal.core.SearchableEnvironment$2.acceptType(SearchableEnvironment.java:276)
        at
org.eclipse.jdt.internal.core.search.BasicSearchEngine$1.acceptIndexMatch(BasicSearchEngine.java:524)
        at
org.eclipse.jdt.internal.core.search.matching.InternalSearchPattern.acceptMatch(InternalSearchPattern.java:44)
        at
org.eclipse.jdt.internal.core.search.matching.InternalSearchPattern.findIndexMatches(InternalSearchPattern.java:75)
        at
org.eclipse.jdt.internal.core.search.matching.MatchLocator.findIndexMatches(MatchLocator.java:308)
        at
org.eclipse.jdt.internal.core.search.PatternSearchJob.search(PatternSearchJob.java:111)
        at
org.eclipse.jdt.internal.core.search.PatternSearchJob.execute(PatternSearchJob.java:64)
        at
org.eclipse.jdt.internal.core.search.processing.JobManager.performConcurrentJob(JobManager.java:260)
        at
org.eclipse.jdt.internal.core.search.BasicSearchEngine.searchAllTypeNames(BasicSearchEngine.java:535)
        at
org.eclipse.jdt.internal.core.SearchableEnvironment.findTypes(SearchableEnvironment.java:280)
        at
org.eclipse.jdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:670)
        at org.eclipse.jdt.internal.core.Openable.codeSelect(Openable.java:140)
        at
org.eclipse.jdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:313)
        at
org.eclipse.jdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:307)
        at
org.eclipse.jdt.internal.ui.text.java.hover.AbstractJavaEditorTextHover.getHoverInfo(AbstractJavaEditorTextHover.java:108)
        at
org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo(BestMatchHover.java:102)
        at
org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo(JavaEditorTextHoverProxy.java:69)
        at
org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:160)
Comment 1 David Audel CLA 2005-03-30 05:14:43 EST
Fixed

The line 211 of SelectionEngine must be

System.arraycopy(this.acceptedClassesModifiers, 0, this.acceptedClassesModifiers
= new int[newLength], 0, length);

instead of

System.arraycopy(this.acceptedClasses, 0, this.acceptedClassesModifiers = new
int[newLength], 0, length);
Comment 2 David Audel CLA 2005-03-31 12:17:38 EST
Verified in I20050331-0800