Oops, put the swizzling forwarder to package __swizzled__
authorJan Vrany <jan.vrany@fit.cvut.cz>
Wed, 15 Oct 2014 11:48:30 +0100
changeset 292 9b594076c9b6
parent 289 5c2cffd3c13c
child 293 6088e42852de
child 360 34eb21f10b7c
Oops, put the swizzling forwarder to package __swizzled__ ...otherwise it the forwarder would be commited along with package methods.
stx_goodies_smallsense.st
--- a/stx_goodies_smallsense.st	Tue Oct 07 15:22:01 2014 +0100
+++ b/stx_goodies_smallsense.st	Wed Oct 15 11:48:30 2014 +0100
@@ -514,7 +514,7 @@
     "/ Stdout nextPutLine: '^^^ Compiling'.
     swizzledForwarderMethod := ByteCodeCompiler compile: swizzledForwarderMethodSource forClass: cls install: false.
     swizzledForwarderMethod category: shadowedMethod category.
-    swizzledForwarderMethod package: self package.
+    swizzledForwarderMethod package: shadowedMethodCopy package.
     cls basicAddSelector:selector withMethod:swizzledForwarderMethod.
 
     "/ Stdout nextPutLine: '^^^ Compiled'.