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

Mario Fusco (JIRA) issues at jboss.org
Thu Jan 23 08:48:29 EST 2014


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

Mario Fusco updated DROOLS-414:
-------------------------------

    Issue Type: Feature Request  (was: Bug)

    
> 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
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 5.5.0.Final, 6.0.1.Final
>            Reporter: Davide Sottara
>            Assignee: Mario Fusco
>
> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list