[ https://issues.apache.org/jira/browse/PYLUCENE-47?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16823602#comment-16823602 ]
Andi Vajda commented on PYLUCENE-47: ------------------------------------ Fixed in rev 1857978 (the attached test passes both with python2 and python3). Thank you for the patch and the test case. I had to expand on your patch considerably to make the comparisons really deterministic as that was one part of the bug, it would only happen sometimes... based on the original order of the signatures returned by java and the order of comparisons in python's sort. I also wanted to do the rank compare only when it's actually needed as it's not free. > Type matching in methods with same number of arguments > ------------------------------------------------------ > > Key: PYLUCENE-47 > URL: https://issues.apache.org/jira/browse/PYLUCENE-47 > Project: PyLucene > Issue Type: Bug > Reporter: Petrus Hyvönen > Priority: Major > Attachments: build_and_wrap_Test_parameters_v3.zip, > java-example-test-parameters-v2.2.zip, java-example-test-parameters.zip, > pylucene-47-including-constructors.patch > > > If the same number of arguments are used in a method and the arguments are > positively matched also on subclasses of the argument. The order of testing > in the generated code will matter and give unpredictable results. > A test case is attached below. It should fail in most cases but with a piece > of luck the order of tests in the generated code may get right and it will > work (1/24 chance if at random). -- This message was sent by Atlassian JIRA (v7.6.3#76005)