ClassCastException in ModelUtils when using composites
Closed this issue · 2 comments
GoogleCodeExporter commented
The following exception has plagued us when trying to use for example the DAWN
messaging actor in a composite:
Caused by: java.lang.ClassCastException:
org.eclipse.core.internal.resources.WorkspaceRoot cannot be cast to
org.eclipse.core.resources.IProject
at
com.isencia.passerelle.workbench.model.utils.ModelUtils.getProject(ModelUtils.ja
va:433) [na:na]
The line number is corresponding to the DAWN repository. The attached patch
fixes this bug for the Passerelle Google code version.
Original issue reported on code.google.com by s.olof.svensson@gmail.com
on 14 Dec 2012 at 8:29
Attachments:
GoogleCodeExporter commented
Indeed this patch seems to conflict with the one in issue 38, however this
patch is a patch of the issue 38 one. This patch solves the ClassCastException
without re-introducing the problem in issue 38.
Original comment by s.olof.svensson@gmail.com
on 14 Dec 2012 at 12:18
GoogleCodeExporter commented
Code has been committed on trunk.
Original comment by erwin...@gmail.com
on 15 Dec 2012 at 7:57
- Changed state: Fixed