[jboss-jira] [JBoss JIRA] (DROOLS-4620) Executable model compilation fails with 'inference variable A has incompatible bounds' when using accumulate

Martin Weiler (Jira) issues at jboss.org
Tue Oct 8 17:03:00 EDT 2019


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

Martin Weiler updated DROOLS-4620:
----------------------------------
    Git Pull Request: https://github.com/kiegroup/drools/pull/2570


> Executable model compilation fails with 'inference variable A has incompatible bounds' when using accumulate
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: DROOLS-4620
>                 URL: https://issues.jboss.org/browse/DROOLS-4620
>             Project: Drools
>          Issue Type: Bug
>          Components: core engine, executable model
>    Affects Versions: 7.27.0.Final
>            Reporter: Martin Weiler
>            Assignee: Mario Fusco
>            Priority: Major
>              Labels: support
>
> A rule containing the following accumulate constraint:
> {noformat}
>   when
>   $max1 : Number() from accumulate(
>     StockTick($time : dueDate);
>     max($time.getTime().getTime()))
> // object model:
> public class StockTick {
> ...
>     public Calendar getDueDate() {
>         return dueDate;
>     }
> {noformat}
> fails to compile:
> {noformat}
>   reason: varargs mismatch; inference variable A has incompatible bounds
>       equality constraints: java.lang.Long
>       lower bounds: java.util.Date], Message [id=3, level=ERROR, path=src/main/java/defaultpkg/RulesE50E409E17279CAE524E8EC1D671D39BRuleMethods0.java, line=0, column=0
> {noformat}



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


More information about the jboss-jira mailing list