Message12450

Author jeff.allen
Recipients bmvanwyk, jeff.allen, tomluk, wfouche2, zyasoft
Date 2019-04-26.07:45:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1556264751.15.0.47177458777.issue2445@roundup.psfhosted.org>
In-reply-to
Content
This continues to provide interest. I can only guess at the reasoning that led to performing this test on the .modified attributes once C3 has failed. However, it seems questionable, in that:

1. A modified attribute may conflict with a method defined in Java (e.g. proxy method __repr__ added to Map does this, and many others).

2. Since https://hg.python.org/jython/rev/f3660ced0608#l3.131, we have been changing order Java provides, placing the superclass last in the bases. :/

I think the motive for 2. is to give to give proxy methods added to interfaces Map, List, etc. precedence over implementations provided from Java, but it makes what we're doing with C3 and the MRO even less likely to match Java. I'll experiment with reversing this in circumstances where all the conflicts are reported.
History
Date User Action Args
2019-04-26 07:45:51jeff.allensetmessageid: <1556264751.15.0.47177458777.issue2445@roundup.psfhosted.org>
2019-04-26 07:45:51jeff.allensetrecipients: + jeff.allen, zyasoft, tomluk, bmvanwyk, wfouche2
2019-04-26 07:45:51jeff.allenlinkissue2445 messages
2019-04-26 07:45:50jeff.allencreate