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

Queries do not work with chained accessors as arguments

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Critical Critical
    • None
    • 5.5.0.Final, 6.0.1.Final
    • None
    • None

      When processing a query CE that uses chained property accessors:

      when
      $x : Foo()
      myQuery( $x.bar ; )
      then

      the QueryElementBuilder considers the whole expression $x.bar as a variable. Since no variable with that name has been bound, it is taken to be a new declaration, and thus an output. This results in an inconsistent behavior, since an obvious constraint will be ignored.

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

              Created:
              Updated:
              Resolved: