Details
-
Bug
-
Resolution: Done
-
Major
-
7.0.0.Final
-
2017 Week 24-25
-
NEW
-
NEW
Description
When running DMN test combination sort( list : [3, 1, 4, 5, 2] ) from FEELFunctionsTest class on IBM JDK, the test fails, because the correct sort method cannot be invoked.
On IBM JDK, the combination tries to invoke method [1] from SortFunction class, which is incorrect, because the second method with just one parameter should be invoked. This behaviour is influenced by IBM JDK returning methods from call [2] in different order.
Notes from debugging:
This check [3] pass because the array there is 3 items long although the last item is not populated. This array is created from this method call [4].
[1] https://github.com/kiegroup/drools/blob/master/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/SortFunction.java#L36
[2] https://github.com/kiegroup/drools/blob/ec038e19867d0f4f13f9ddc508f3bbab411d3415/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/BaseFEELFunction.java#L192
[3]https://github.com/kiegroup/drools/blob/ec038e19867d0f4f13f9ddc508f3bbab411d3415/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/BaseFEELFunction.java#L246
[4] https://github.com/kiegroup/drools/blob/ec038e19867d0f4f13f9ddc508f3bbab411d3415/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/BaseFEELFunction.java#L235