[ http://jira.andromda.org/browse/UMLMETA-81?page=comments#action_13680 ]
Flavius Burca commented on UMLMETA-81: -------------------------------------- Found and fixed problem: org.andromda.metafacades.emf.uml2.ModelElementFacadeLogicImpl, method handleGetStereotypeNames() is: protected java.util.Collection handleGetStereotypeNames() { return UmlUtilities.getStereotypeNames((NamedElement)this.metaObject); } You should not cast to NamedElement because org.eclipse.uml2.Generalization is doesn't implement this interface. It implements only Element. So change this to: return UmlUtilities.getStereotypeNames(this.metaObject); Best regards, Flavius Burca > EMF GeneralizationFacade: findTaggedValue fails with ClassCastException > ----------------------------------------------------------------------- > > Key: UMLMETA-81 > URL: http://jira.andromda.org/browse/UMLMETA-81 > Project: UML Metafacades > Type: Bug > Versions: 3.2-RC1 > Reporter: Flavius Burca > Assignee: Wouter Zoons > > When I try to do a findTaggedValue("xxx") on a GeneralizationFacade, AndroMDA > fails with exception: > java.lang.ClassCastException: org.eclipse.uml2.impl.GeneralizationImpl -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.andromda.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642