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

Mario Fusco (JIRA) issues at jboss.org
Fri Aug 5 11:43:00 EDT 2016


    [ https://issues.jboss.org/browse/DROOLS-414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13275778#comment-13275778 ] 

Mario Fusco commented on DROOLS-414:
------------------------------------

This commit allows to use any expression as input for a query https://github.com/droolsjbpm/drools/commit/987d68ab3

> 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