baldimir opened a new issue, #649: URL: https://github.com/apache/incubator-kie-issues/issues/649
When having an mvel expression in a DRL rule, that assigns a BigDecimal to a primitive type value, e.g. long (like `$someFact.longValue = $someOtherFact.bigDecimalValue`), the generated code fails on Java compilation, with an exception like `incompatible types: java.math.BigDecimal cannot be converted to long`. The mvel compiler needs to generate the assign expression with an appropriate BigDecimal conversion method based on the primitive type to which the value is assigned to. An example of a correctly generated code: `$someFact.longValue = $someOtherFact.bigDecimalValue.longValue()` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
