konB00yay opened a new issue, #6340: URL: https://github.com/apache/incubator-kie-drools/issues/6340
Follow up from https://github.com/apache/incubator-kie-drools/issues/6323 Encountered another edge case scenario where nested method call expressions and scopes change the argument order for translated methods. Example: Adding the following line to the drl in `MixedArgumentTest` results in the same error as issue 6323 and incorrect arguments `$person_method : Integer() from doNothingAgain($person1.addAges($child1.getAge, $child2.getAge))` The test fails and results in ```java.lang.AssertionError: [Message [id=1, level=ERROR, path=src/main/java/mixedarguments/Rules73ECAF6268112A34E35D5BE8D6734065RuleMethods0.java, line=40, column=4317 text=The method from(Variable<A>, Variable<B>, Variable<C>, Function3<A,B,C,?>) in the type DSL is not applicable for the arguments (Variable<Child>, Variable<Child>, Variable<Person>, LambdaExtractor764BBA9ED60BA8439E83B466EAB15C27)], Message [id=2, level=ERROR, path=src/main/java/mixedarguments/Rules73ECAF6268112A34E35D5BE8D6734065RuleMethods0.java, line=0, column=0 text=Java source of src/main/java/mixedarguments/Rules73ECAF6268112A34E35D5BE8D6734065RuleMethods0.java in error:``` -- 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]
