Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-6362

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • executable model

      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)

            lmolteni@redhat.com Luca Molteni
            lmolteni@redhat.com Luca Molteni
            Daniel Rosa Daniel Rosa
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: