huybuidac20593 / yakindu

Automatically exported from code.google.com/p/yakindu
0 stars 0 forks source link

Class cast exception if java provided custom operation is not executable #63

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create statechart with custom operation.
2. Define java class with operation implementation and wrong parameter type
3. Start simulation

What is the expected output? What do you see instead?
With the actual implementation an error dialog should pop up with an error 
message. The simulation should be stopped.

A class cast exception is throwed by TerminateLaunchStatusHandler because 
AbstractExecutionFlowSimulationEngine could not be cast to IDebugTarget.

A simulation engine should throw some kind of SimulationException on errors 
which should be handled from the launch framework directly. So the simulation 
runtime error handling could be moved to the launch framework and the eclipse 
launch framework dependencies (to IDebugTarget) could be removed from the 
simulation engine implementations.

Original issue reported on code.google.com by markus.muehlbrandt on 22 Oct 2014 at 11:20

GoogleCodeExporter commented 9 years ago

Original comment by A.Muel...@googlemail.com on 30 Oct 2014 at 2:17

GoogleCodeExporter commented 9 years ago
fixed this for 2.4.0 

Original comment by A.Muel...@googlemail.com on 30 Oct 2014 at 2:24

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r6320.

Original comment by A.Muel...@googlemail.com on 30 Oct 2014 at 2:25