[jboss-jira] [JBoss JIRA] (DROOLS-1618) DMN sort function doesn't work on IBM JDK
Tibor Zimányi (JIRA)
issues at jboss.org
Mon Jun 19 10:14:00 EDT 2017
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/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
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jboss-jira
mailing list