On 21.10.2009, at 09:41, Adrian Lienhard wrote:
I've fixed this issue in Pharo a couple of months ago. CompiledMethods are not shared anymore, so methodClass returns the expected class. At the time I implemented traits (2004?), there were no method properties and hence sharing compiled methods worked -- of course except for super sends in which case the method was always recompiled (so the answer to Andreas' question below is b)).
We did a small paper for this years ESUG that describes the changes. It will be online at esug.org soon with all the other papers. If somebody wants a copy, I can send it. Marcus -- Marcus Denker -- marcus@2denker.de http://www.2denker.de 2denker UG (haftungsbeschränkt) Sitz Köln Amtsgericht - Registergericht - Köln, HRB 65065 Geschäftsführer: Christian Denker und Dr. Marcus Denker