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

compile error in exec model when BigDecimal is passed as int type argument to function

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.11.1.GA
    • 7.10.1.GA
    • BRE
    • RHDM 7.10.1

    • False
    • False
    • CR1
    • +
    • Undefined
    • Hide

      run attached reproducer by 'mvn clean compile'.
      It works when running it by 'mvn clean compile exec:exec -DgenerateModel=NO'

      Show
      run attached reproducer by 'mvn clean compile'. It works when running it by 'mvn clean compile exec:exec -DgenerateModel=NO'
    • 2021 Week 19-21 (from May 10), 2021 Week 22-24 (from May 31)

    Description

      When BigDecimal is passed to function as int type argument , compile in exec model fails. The error happens in both RHS and LHS, but these errors are different.

      LHS case:

      [ERROR] /path/to/reproducer_function_type_mismatch/target/generated-sources/drools-model-compiler/main/java/com/example/reproducer/P57/LambdaPredicate57072CFE0281CE26A44814C8D78A2FC2.java:[26,41] incompatible types: java.math.BigDecimal cannot be converted to int

      RHS case:

      [ERROR] /path/to/reproducer_function_type_mismatch/target/generated-sources/drools-model-compiler/main/java/com/example/reproducer/P68/LambdaConsequence681E41237219B67900AEBDC627D7A22F.java:[26,25] bd1 has private access in com.example.reproducer.Fact

      Both build succeed with non-executable model (i.e. -DgenerateModel=NO)

      Attachments

        Issue Links

          Activity

            People

              lmolteni@redhat.com Luca Molteni
              rhn-support-hmiura Hiroko Miura
              Paolo Bizzarri Paolo Bizzarri
              Paolo Bizzarri Paolo Bizzarri
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: