Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 321746 - [Compatibility] CCE thrown when trying to show MockViewPart
Summary: [Compatibility] CCE thrown when trying to show MockViewPart
Status: RESOLVED FIXED
Alias: None
Product: e4
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 1.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 4.1 M1   Edit
Assignee: Remy Suen CLA
QA Contact: Remy Suen CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-04 11:46 EDT by Remy Suen CLA
Modified: 2010-08-04 11:49 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 Remy Suen CLA 2010-08-04 11:46:03 EDT
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
Comment 1 Remy Suen CLA 2010-08-04 11:49:11 EDT
Fixed in CVS HEAD.