- changed status to resolved
ClassCastException when localizing void type
Issue #534
resolved
The following ClassCastException
occurs when setLocalizePropertyValue
is called for a non-COREModelElement (such as void
or any
):
Caused by: java.lang.ClassCastException: ca.mcgill.sel.ram.impl.RVoidImpl cannot be cast to ca.mcgill.sel.core.COREModelElement
at ca.mcgill.sel.ram.provider.util.RAMReferenceUtil.setLocalizedPropertyValue(RAMReferenceUtil.java:71)
at ca.mcgill.sel.ram.provider.OperationItemProvider$1.setPropertyValue(OperationItemProvider.java:301)
at ca.mcgill.sel.ram.ui.views.handler.impl.TextViewHandler.setValue(TextViewHandler.java:77)
at ca.mcgill.sel.ram.ui.views.handler.impl.TextViewHandler$1.elementSelected(TextViewHandler.java:56)
Comments (4)
-
reporter -
References
#534: includes type ANY in the getTypeByName function→ <<cset a58b4fa1cb32>>
-
References
#534: added test for type ANY→ <<cset 71ca658cdd98>>
-
Merged in Issues/534-localized-property-classcastexception (pull request #139)
Resolves
#534: ClassCastException in setLocalizedPropertyValueApproved-by: Arthur Le Saint arthur.lesaint@hotmail.fr
→ <<cset bfaf1160a393>>
- Log in to comment
Resolves
#534: Relaxes cast for setLocalizedPropertyValue to allow setting of non COREModelElement instances.For example, void or any are not COREModelElements.
Adds two test cases to cover this.
→ <<cset ddf1e89421ec>>