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

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Done
    • None
    • 5.4.0.Final
    • None
    • 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

      Attachments

        Activity

          People

            mfusco@redhat.com Mario Fusco
            mfusco@redhat.com Mario Fusco
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: