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

Bug 335662

Summary: Display of EnumerationLiterals in static profile
Product: [Modeling] Papyrus Reporter: Arnaud Cuccuru <arnaud.cuccuru>
Component: ViewsAssignee: Project Inbox <mdt-papyrus-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: sebastien.gerard, yann.tanguy
Version: 0.7.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Arnaud Cuccuru CLA 2011-01-28 04:32:23 EST
In the Properties/Appearance view, clicking on "Display selected stereotypes..." raises the following exception in the case where selected property is typed by an enumeration and the profile is implemented as a static profile:
java.lang.ClassCastException: org.eclipse.papyrus.sysml.portandflows.FlowDirection cannot be cast to org.eclipse.uml2.uml.EnumerationLiteral

      at org.eclipse.papyrus.umlutils.StereotypeUtil.getPropertyValueForEnumerationType(StereotypeUtil.java:365)
Comment 1 Camille Letavernier CLA 2013-03-25 08:53:52 EDT
Works in the current version (0.10M6)