Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
0.9
-
None
Description
The line 90 of the /commons/proper/scxml/trunk/src/main/java/org/apache/commons/scxml/semantics/TransitionTargetComparator (compare(...) method)
looks like this:
State s = (State) iter.next();
The cast to State causes a cast exception in case if the state machine has nested parallels (without intermediate states). The line should be replaced with
TransitionTarget s = (TransitionTarget) iter.next();