You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Rahul Akolkar (JIRA)" <ji...@apache.org> on 2011/05/11 03:30:47 UTC
[jira] [Updated] (SCXML-160) Cast to State in
TransitionTargetComparator
[ https://issues.apache.org/jira/browse/SCXML-160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rahul Akolkar updated SCXML-160:
--------------------------------
Fix Version/s: 1.0
0.10
Marking fix version(s) to next release.
> Cast to State in TransitionTargetComparator
> -------------------------------------------
>
> Key: SCXML-160
> URL: https://issues.apache.org/jira/browse/SCXML-160
> Project: Commons SCXML
> Issue Type: Bug
> Affects Versions: 0.9
> Reporter: Eugen Kogan
> Priority: Minor
> Fix For: 0.10, 1.0
>
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> 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();
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira