gitgabrio commented on code in PR #6213:
URL:
https://github.com/apache/incubator-kie-drools/pull/6213#discussion_r1922221472
##########
kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/BaseFEELFunction.java:
##########
@@ -80,6 +81,14 @@ public Object invokeReflectively(EvaluationContext ctx,
Object[] params) {
CandidateMethod cm = getCandidateMethod(ctx, params,
isNamedParams);
if (cm != null) {
+ if (cm.actualParams != null) {
+ for (int i = 0; i < cm.actualParams.length; i++) {
+ if (cm.actualParams[i] instanceof List list) {
+ cm.actualParams[i] =
getFEELDialectAdaptedList(ctx, list);
+ }
+ }
+ }
Review Comment:
Yup. I used the term "adapted" because with "coerce" we usually mean type
casting (e.g. string to bigdecimal) while the BFEEL semantic is different
(null to default value)
--
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]