Bug 147736 - ClassCastException in TypeHierarchy
Summary: ClassCastException in TypeHierarchy
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2.1   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-19 11:28 EDT by David Audel CLA
Modified: 2006-09-12 08:41 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Audel CLA 2006-06-19 11:28:36 EDT
build I20060614-0843 + JDT/Core head

I found a ClassCastException in my .log but i don't know how to reproduce it.

!ENTRY org.eclipse.jdt.core 4 4 2006-06-19 16:50:57.868
!MESSAGE Exception occurred in listener of Java element change notification
!STACK 0
java.lang.ClassCastException: org.eclipse.jdt.internal.core.JarPackageFragmentRoot
	at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.isAffectedByPackageFragmentRoot(TypeHierarchy.java:929)
	at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.isAffected(TypeHierarchy.java:802)
	at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.isAffectedByChildren(TypeHierarchy.java:820)
	at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.isAffectedByJavaProject(TypeHierarchy.java:890)
	at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.isAffected(TypeHierarchy.java:800)
	at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.isAffectedByChildren(TypeHierarchy.java:820)
	at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.isAffectedByJavaModel(TypeHierarchy.java:836)
	at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.isAffected(TypeHierarchy.java:798)
	at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.elementChanged(TypeHierarchy.java:328)
	at org.eclipse.jdt.internal.core.DeltaProcessor$3.run(DeltaProcessor.java:1486)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
	at org.eclipse.jdt.internal.core.DeltaProcessor.notifyListeners(DeltaProcessor.java:1476)
	at org.eclipse.jdt.internal.core.DeltaProcessor.firePostChangeDelta(DeltaProcessor.java:1324)
	at org.eclipse.jdt.internal.core.DeltaProcessor.fire(DeltaProcessor.java:1303)
	at org.eclipse.jdt.internal.core.DeltaProcessor.resourceChanged(DeltaProcessor.java:1848)
	at org.eclipse.jdt.internal.core.DeltaProcessingState.resourceChanged(DeltaProcessingState.java:369)
	at org.eclipse.core.internal.events.NotificationManager$2.run(NotificationManager.java:280)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
	at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:274)
	at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:148)
	at org.eclipse.core.internal.resources.Workspace.broadcastPostChange(Workspace.java:256)
	at org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:958)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1746)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1719)
	at org.eclipse.pde.internal.ui.wizards.imports.PluginImportWizard$2.run(PluginImportWizard.java:114)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
Comment 1 Jerome Lanneluc CLA 2006-06-19 12:28:28 EDT
Bad side effect of fix for bug 146615.
Comment 2 Jerome Lanneluc CLA 2006-06-19 17:09:22 EDT
Moved code that add 'free' package fragment roots from Region#add(...) to RegionBasedTypeHierarchy constructor.

Released for 3.3M1 in HEAD and released for 3.2.1 in TARGET_321.
Comment 3 Frederic Fusier CLA 2006-08-07 08:27:48 EDT
Verified for 3.3 M1 using build I20060807-0010.
Comment 4 David Audel CLA 2006-09-12 08:41:40 EDT
Verified for 3.2.1 using build M20060908-1655