[jboss-jira] [JBoss JIRA] (DROOLS-414) Queries do not work with chained accessors as arguments

Mario Fusco (JIRA) issues at jboss.org
Mon Aug 1 08:18:00 EDT 2016


     [ https://issues.jboss.org/browse/DROOLS-414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list