Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-3494

Accumulate with vars having a different order than the one imposed by Declaration's hashCode causes a ClassCastException

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 5.4.0.Final
    • Component/s: None
    • Labels:
      None

      Description

      Running the following drl causes a ClassCastException:

      import java.util.List
      declare MessageHolder
      id : String
      msg: String
      end

      query getResults( String $mId, List $holders )
      accumulate(
      $holder : MessageHolder( id == $mId, $ans : msg ),
      $holders : collectList( $holder )
      )
      end

      rule "Init"
      when
      then
      insert( new MessageHolder( "1", "x" ) );
      end

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mfusco Mario Fusco
                Reporter:
                mfusco Mario Fusco
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: