changed: #createAccessMethodsFor:in:withChange:asValueHolder:readersOnly:writersOnly:lazyInitialization:
authorClaus Gittinger <cg@exept.de>
Tue, 10 Nov 2009 20:40:12 +0100
changeset 9232 e16232d1a1dc
parent 9231 f323691bacda
child 9233 50ef1ada9fda
changed: #createAccessMethodsFor:in:withChange:asValueHolder:readersOnly:writersOnly:lazyInitialization:
CodeGeneratorTool.st
--- a/CodeGeneratorTool.st	Tue Nov 10 20:39:39 2009 +0100
+++ b/CodeGeneratorTool.st	Tue Nov 10 20:40:12 2009 +0100
@@ -2015,7 +2015,7 @@
 
             "/ default for lazy on class side
             lazyInitialization ifTrue:[
-                (aClass class includesSelector:(defaultMethodName asSymbol)) ifFalse:[
+                (aClass theMetaclass includesSelector:(defaultMethodName asSymbol)) ifFalse:[
                     source := defaultMethodName , '\'.
                     generateComments ifTrue:[
                         source := source , '    "default value for the ''%2'' instance variable (automatically generated)"\\'. 
@@ -2024,7 +2024,7 @@
                                , '    self shouldImplement.\'
                                , '    ^ nil.'.
                     source := (source bindWith:varType with:name) withCRs.
-                    self compile:source forClass:aClass class inCategory:'defaults'.
+                    self compile:source forClass:aClass theMetaclass inCategory:'defaults'.
                 ].
             ].
         ].
@@ -3153,9 +3153,9 @@
 !CodeGeneratorTool class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libtool/CodeGeneratorTool.st,v 1.78 2009-11-06 19:04:11 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libtool/CodeGeneratorTool.st,v 1.79 2009-11-10 19:40:12 cg Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libtool/CodeGeneratorTool.st,v 1.78 2009-11-06 19:04:11 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libtool/CodeGeneratorTool.st,v 1.79 2009-11-10 19:40:12 cg Exp $'
 ! !