]
Mario Fusco updated DROOLS-414:
-------------------------------
Priority: Critical (was: Major)
Queries do not work with chained accessors as arguments
-------------------------------------------------------
Key: DROOLS-414
URL:
https://issues.jboss.org/browse/DROOLS-414
Project: Drools
Issue Type: Feature Request
Affects Versions: 5.5.0.Final, 6.0.1.Final
Reporter: Davide Sottara
Assignee: Mario Fusco
Priority: Critical
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.