Community
Participate
Working Groups
I just had the opportunity to single-step into an AIOOBE: The relevant stack looks like this: IndexSelector.initializeIndexLocations() line: 205 IndexSelector.getIndexLocations() line: 283 JavaSearchParticipant.selectIndexes(SearchPattern, IJavaSearchScope) line: 107 PatternSearchJob.getIndexes(IProgressMonitor) line: 79 PatternSearchJob.ensureReadyToRun() line: 50 IndexManager(JobManager).performConcurrentJob(IJob, int, IProgressMonitor) line: 174 BasicSearchEngine.findMatches(SearchPattern, SearchParticipant[], IJavaSearchScope, SearchRequestor, IProgressMonitor) line: 214 BasicSearchEngine.search(SearchPattern, SearchParticipant[], IJavaSearchScope, SearchRequestor, IProgressMonitor) line: 515 SearchEngine.search(SearchPattern, SearchParticipant[], IJavaSearchScope, SearchRequestor, IProgressMonitor) line: 582 The exception was caused by a search pattern with a focus type like java.lang.Object or java.lang.Throwable etc. In these cases ReferenceCollection.internQualifiedNames(char[][][]) returns EmptyQualifiedNames, so that qualifiedNames[0] goes bonkers.
Thanks Stephan. Could you please specify the build ID?
(In reply to comment #1) > Thanks Stephan. > Could you please specify the build ID? Sorry, forgot to mention: I'm sitting on I20100330-0800, but I just updated my workspace to jdt core's v_A45 (so that's what I stepped through). If any line numbers don't match that'd mean I have changes in those files, but the classes involved should actually be "clean".
Created attachment 166008 [details] Proposed patch Just add a check whether the returned array is empty or not. In this case, keep the qualified name as is...
(In reply to comment #3) > Created an attachment (id=166008) [details] > Proposed patch > > Just add a check whether the returned array is empty or not. In this case, keep > the qualified name as is... Released for 3.6M7 in HEAD stream.
Verified for 3.6M7 using build I20100424-2000
(In reply to comment #5) > Verified for 3.6M7 using build I20100424-2000 I actually used the build I20100426-0852
Verified.