Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-1618

DMN sort function doesn't work on IBM JDK

    XMLWordPrintable

Details

    • 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

      Attachments

        Activity

          People

            etirelli@redhat.com Edson Tirelli
            tzimanyi@redhat.com Tibor Zimányi
            Tibor Zimányi Tibor Zimányi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: