[ https://issues.apache.org/jira/browse/PYLUCENE-47?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Petrus Hyvönen updated PYLUCENE-47: ----------------------------------- Description: 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). was: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. > 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: java-example-test-parameters.zip > > > 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). -- This message was sent by Atlassian JIRA (v7.6.3#76005)