eclipselabs / passerelle

Passerelle, an actor-based process engine based on Ptolemy II
5 stars 3 forks source link

ClassCastException in ModelUtils when using composites #41

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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 9 years ago
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 9 years ago
Code has been committed on trunk.

Original comment by erwin...@gmail.com on 15 Dec 2012 at 7:57