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

Queries in the default package are built twice

    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

      When queries are built, they are looked up in the current package AND in any imported package. In the case of .defaultpkg, which is imported by default, both checks succeed and the query is built twice
      See PatternBuilder line 213

      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: