March 13, 2011
8:17 p.m.
Comment #7 on issue 3581 by snoob...@yahoo.ie: [Failing test] 1.1.1 Full: MethodWrappers.Tests.ObjectAsOneTimeMethodWrapperTest.testInstallOnClassCategory http://code.google.com/p/pharo/issues/detail?id=3581 This looks like an issue with the method cache. ObjectAsMethodWrapper>>install manipulates the methodDict directly. We should change the following code in that method from self wrappedClass methodDict at: self selector put: self. to rather be self wrappedClass addSelector: self selector withMethod: self. This ensures that the method cache is flushed in Behaviour>>basicAddSelector:withMethod: See CompiledMethod>>flushCache {accessing} and Symbol>>flushCache {system primitives}