Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-547

Queries should check the type of input arguments

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 6.1.0.Final
    • 5.6.0.Final, 6.1.0.CR2
    • None
    • None
    • Hide

      Take the query

      query foo( String $s ) ... end
      

      and the rule fragment

      $i : Integer()
      foo( $i ; )
      
      Show
      Take the query query foo( String $s ) ... end and the rule fragment $i : Integer () foo( $i ; )

    Description

      Queries do not check the type of input arguments, possibly resulting in runtime ClassCastExceptions

      Attachments

        Activity

          People

            mfusco@redhat.com Mario Fusco
            dsotty Davide Sottara (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: