Project: Eclipse_Platform_UI
Bug 321746 [Compatibility] CCE thrown when trying to show MockViewPart
Reported: 2010-08-04 11:46:03 | Status: resolved fixed

Amazingly enough, MockViewPart doesn't actually extend ViewPart so we get a CCE. Caused by: java.lang.ClassCastException: org.eclipse.ui.tests.api.MockViewPart at org.eclipse.ui.internal.e4.compatibility.CompatibilityView.createPartControl(CompatibilityView.java:69) at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:181) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:47) ... 104 more

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/e4/compatibility/CompatibilityView.java