[jboss-jira] [JBoss JIRA] (DROOLS-5320) Rule compilation error when binding fields indexed with square brackets from different Fact types

Mario Fusco (Jira) issues at jboss.org
Mon May 11 13:48:00 EDT 2020


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

Mario Fusco updated DROOLS-5320:
--------------------------------
    Sprint: 2020 Week 19-21 (from May 4)


> Rule compilation error when binding fields indexed with square brackets from different Fact types
> -------------------------------------------------------------------------------------------------
>
>                 Key: DROOLS-5320
>                 URL: https://issues.redhat.com/browse/DROOLS-5320
>             Project: Drools
>          Issue Type: Bug
>          Components: core engine
>    Affects Versions: 7.37.0.Final
>            Reporter: Matteo Casalino
>            Assignee: Mario Fusco
>            Priority: Major
>         Attachments: binding-field-indexed-with-square-brackets2.zip
>
>
> Similar to DROOLS-5216, but occurs when binding the field from a different Fact type.
> Example:
> {noformat}
>     rule "binding field indexed with square brackets from different fact type"
>     when Pojo2($firstItem : simpleInt)
>     Pojo($firstItem == integerList[this.integerList.size()-1])
>     then
>     end
> {noformat}
> Error:
> {noformat}
>     Message [id=1, kieBase=binding-field-indexed-with-square-brackets, level=ERROR, path=org/drools/reproducer/rules.drl, line=-1, column=0
>        text=Comparison operation requires compatible types. Found int and class java.lang.Object]
> {noformat}
> The example works fine when compiling without executable model.



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the jboss-jira mailing list