Bug 92086 - [index] ClassCastException in DiskIndex.mergeCategory()
Summary: [index] ClassCastException in DiskIndex.mergeCategory()
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 3.1 M7   Edit
Assignee: Kent Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 92295 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-04-20 11:04 EDT by Billy Biggs CLA
Modified: 2005-05-11 09:24 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Billy Biggs CLA 2005-04-20 11:04:11 EDT
Using I20050419-1200 for a while, I found this error in my log.  I am not sure
what triggered it.

!ENTRY org.eclipse.jdt.core 4 4 2005-04-20 10:36:09.197
!MESSAGE Background Indexer Crash Recovery
!STACK 0
java.lang.ClassCastException: java.lang.Integer
        at
org.eclipse.jdt.internal.core.index.DiskIndex.mergeCategory(DiskIndex.java:403)
        at
org.eclipse.jdt.internal.core.index.DiskIndex.mergeCategories(DiskIndex.java:388)
        at
org.eclipse.jdt.internal.core.index.DiskIndex.mergeWith(DiskIndex.java:480)
        at org.eclipse.jdt.internal.core.index.Index.save(Index.java:156)
        at
org.eclipse.jdt.internal.core.search.indexing.IndexManager.saveIndex(IndexManager.java:522)
        at
org.eclipse.jdt.internal.core.search.indexing.IndexManager.saveIndexes(IndexManager.java:566)
        at
org.eclipse.jdt.internal.core.search.indexing.IndexManager.notifyIdle(IndexManager.java:386)
        at
org.eclipse.jdt.internal.core.search.processing.JobManager.run(JobManager.java:352)
        at java.lang.Thread.run(Thread.java:534)
Comment 1 Frederic Fusier CLA 2005-04-20 11:06:38 EDT
I got it also on my WinXP box today. Unfortunately, I also cannot provide any
test case to help to reproduce it.
Comment 2 Kent Johnson CLA 2005-04-20 14:02:01 EDT
Fixed.

Can reproduce by searching for a method reference & then modifying one of the 
matching files in JDT/Core.
Comment 3 Philipe Mulet CLA 2005-04-21 17:48:57 EDT
*** Bug 92295 has been marked as a duplicate of this bug. ***
Comment 4 Olivier Thomann CLA 2005-05-11 09:24:03 EDT
Could not reproduce anymore.
Verified in I20050510-0010.