Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 349217 - R4E UI error trigger when switching from FORMAL to BASIC review
Summary: R4E UI error trigger when switching from FORMAL to BASIC review
Status: RESOLVED INVALID
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Sebastien Dubois CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-13 13:39 EDT by Jacques Bouthillier CLA
Modified: 2012-01-24 17:45 EST (History)
2 users (show)

See Also:


Attachments
Switch type of review (10.05 KB, image/png)
2011-06-13 13:40 EDT, Jacques Bouthillier CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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