konB00yay commented on PR #6324:
URL:
https://github.com/apache/incubator-kie-drools/pull/6324#issuecomment-2839955306
> @konB00yay Than you for filing the GH issue and this PR.
>
> It's great that you provided the unit test. Could you also share an
example rule (not only the expression) which you hit the issue? Per my
understanding, this issue is about the order in `MethodCallExpr.childNodes`
while the order in `MethodCallExpr.arguments` is correct. So there might be a
problem where drools should use `MethodCallExpr.arguments` instead of
`MethodCallExpr.childNodes`.
A new test file has been added with a drl rule which encounters the
following exception without the change to DrlxParseUtils:
```
MixedArgumentTest.mixedArgumentsTest:64->BaseModelTest.getKieSession:91->BaseModelTest.getKieSession:96->BaseModelTest.getKieContainer:100->BaseModelTest.getKieContainer:107->BaseModelTest.createKieBuilder:118->BaseModelTest.createKieBuilder:143
[Message [id=1, level=ERROR,
path=src/main/java/mixedarguments/RulesE10E0A59478B34E2B90BAC9D05E4B593RuleMethods0.java,
line=32, column=3267
text=The method from(Variable<A>, Variable<B>, Variable<C>, Variable<D>,
Function4<A,B,C,D,?>) in the type DSL is not applicable for the arguments
(Variable<Child>, Variable<Child>, Variable<Person>, Variable<Person>,
LambdaExtractorF011A3D197DF281A4A623392B55E265A)], Message [id=2, level=ERROR,
path=src/main/java/mixedarguments/RulesE10E0A59478B34E2B90BAC9D05E4B593RuleMethods0.java,
line=0, column=0
text=Java source of
src/main/java/mixedarguments/RulesE10E0A59478B34E2B90BAC9D05E4B593RuleMethods0.java
in error:
package mixedarguments;
```
--
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]