On 28 ene 2016, at 11:07 a.m., Denis Kudriashov <dionisiydk@gmail.com> wrote:
2016-01-28 10:43 GMT+01:00 Guillermo Polito <guillermopolito@gmail.com <mailto:guillermopolito@gmail.com>>: - You should not copy methods *just like that*. Methods are bounded (using the last literal in the literal list) to the class that owns it, to be able to resolve super sends. That is, every time there is a super send, the VM checks to which class it belongs and continues the lookup in the superclass of that class.
But is not #addSelector:withMethod: should take care about it? I guess traits installation not creates methods by compiling.
For traits. But I wouldnât be sure for others :). This is a part of the system that need some love I think...
- Maybe it is writing to the sources file that doesnât work from different processes?
It should be fixed by synchronising such operations. Anyway copy approach should not touch source file at all.