Tibor Zimányi created DROOLS-1618:
-------------------------------------
Summary: DMN sort function doesn't work on IBM JDK
Key: DROOLS-1618
URL:
https://issues.jboss.org/browse/DROOLS-1618
Project: Drools
Issue Type: Bug
Components: dmn engine
Affects Versions: 7.0.0.Final
Reporter: Tibor Zimányi
Assignee: Edson Tirelli
Fix For: 7.1.0.Final
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/m...
[2]
https://github.com/kiegroup/drools/blob/ec038e19867d0f4f13f9ddc508f3bbab4...
[
3]https://github.com/kiegroup/drools/blob/ec038e19867d0f4f13f9ddc508f3bba...
[4]
https://github.com/kiegroup/drools/blob/ec038e19867d0f4f13f9ddc508f3bbab4...
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)