Uploaded image for project: 'Commons SCXML'
  1. Commons SCXML
  2. SCXML-160

Cast to State in TransitionTargetComparator

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.9
    • 2.0
    • 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();

      Attachments

        Activity

          People

            woon_san Woonsan Ko
            eugen_k Eugen Kogan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified