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

Queries should check the type of input arguments

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major 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 ; )

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

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

                Created:
                Updated:
                Resolved: