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

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 5.4.0.Final
    • None
    • 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
            Archiver:
            rhn-support-ceverson Clark Everson

            Dates

              Created:
              Updated:
              Resolved:
              Archived:

              PagerDuty