Uploaded image for project: 'Red Hat Decision Manager'
  1. Red Hat Decision Manager
  2. RHDM-1110

Executable model compilation fails with 'inference variable A has incompatible bounds' when using accumulate

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.5.1.GA
    • 7.4.1.GA
    • BRE
    • 2019 Week 41-43 (from Okt 7)

      A rule containing the following accumulate constraint:

        when
        $max1 : Number() from accumulate(
          StockTick($time : dueDate);
          max($time.getTime().getTime()))
      
      // object model:
      public class StockTick {
      ...
          public Calendar getDueDate() {
              return dueDate;
          }
      

      fails to compile:

        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
      

              lmolteni@redhat.com Luca Molteni
              rhn-support-mputz Martin Weiler (Inactive)
              Daniel Rosa Daniel Rosa
              Daniel Rosa Daniel Rosa
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: