Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 349217

Summary: R4E UI error trigger when switching from FORMAL to BASIC review
Product: z_Archived Reporter: Jacques Bouthillier <lmcbout>
Component: MylynAssignee: Sebastien Dubois <sebastien.dubois>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: alvaro.sanchez-leon, lmcbout
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:
Attachments:
Description Flags
Switch type of review none

Description Jacques Bouthillier CLA 2011-06-13 13:39:10 EDT
- Create a FORMAL review, add some anomalies, then selected an old BASIC review . It trigger the error in attachment

R4EReviewImpl cannot be cast to R4EFormalReview
Comment 1 Jacques Bouthillier CLA 2011-06-13 13:40:37 EDT
Created attachment 197908 [details]
Switch type of review

Generate an error when switching review type
Comment 2 Jacques Bouthillier CLA 2011-06-13 13:48:30 EDT
Extra trace when the problem occurred:
!ENTRY org.eclipse.jface 4 2 2011-06-13 13:27:32.064
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface".
!STACK 0
java.lang.ClassCastException: org.eclipse.mylyn.reviews.r4e.core.model.impl.R4EReviewImpl cannot be cast to org.eclipse.mylyn.reviews.r4e.core.model.R4EFormalReview
	at org.eclipse.mylyn.reviews.r4e.ui.internal.model.R4EUIAnomalyExtended.getAllowedStates(R4EUIAnomalyExtended.java:504)
	at org.eclipse.mylyn.reviews.r4e.ui.internal.model.R4EUIAnomalyExtended.getAvailableStates(R4EUIAnomalyExtended.java:290)
	at org.eclipse.mylyn.reviews.r4e.ui.internal.properties.tabbed.AnomalyExtraTabPropertySection.refresh(AnomalyExtraTabPropertySection.java:575)
	at org.eclipse.mylyn.reviews.r4e.ui.internal.properties.tabbed.ModelElementTabPropertySection.propertyChanged(ModelElementTabPropertySection.java:116)
	at org.eclipse.mylyn.reviews.r4e.ui.internal.model.R4EUIModelController.selectionChanged(R4EUIModelController.java:259)
	at org.eclipse.mylyn.reviews.r4e.ui.internal.navigator.ReviewNavigatorView$1.selectionChanged(ReviewNavigatorView.java:362)
Comment 3 Sebastien Dubois CLA 2011-06-30 11:22:52 EDT
This problem is not reproduceable.  We will close it for now.  To Re-open if it happens again