On Wed, 17 Apr 2019, Petrus Hyvönen (JIRA) wrote:

Petrus Hyvönen commented on PYLUCENE-47:
----------------------------------------

Thanks for looking at this. I am not sure I understand your
comments/questions. I don't think it is possible to have method overloading
based on return type, so not sure what the return type could be used for?

In that case, my comment makes no sense, sorry for the noise.

Do you know how the matching handles interfaces with parameters? Would
isAssignableFrom match on them?

Not in terms of isAssignableFrom() but in terms of how many interfaces a parameter class implements (in essence, the interface hierarchy is a parallel class hierarchy, with multiple super-interfaces allowed). Counting those may give us some signal as to how deep a parameter class is and help with sorting.

I realized that the sorting is likely also necessary for constructors, in
case you have overloaded constructors for a class... Seems possible to use
almost identical code where the sorting in cpp.py is done for the
constructors.

Yes, we have the same bug there.

Andi..

Reply via email to