Issue 1887: O2 copy class doesn't copy class side instance variables

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue 1887: O2 copy class doesn't copy class side instance variables

Stan Shepherd
10508 dev rc + O2.

Try from the browser, or evaluate:

foo := Object subclass: #Foo
        instanceVariableNames: ''
        classVariableNames: ''
        poolDictionaries: ''
        category: 'Whatever'.
        foo addInstVarName:  'bar'.
        foo class addInstVarName:  'classBar'.
then
        O2CmdCopyClass new copyClass: Foo as: 'Foo2'

result:- classBar is not defined in Foo2.

Works fine in OB
Reply | Threaded
Open this post in threaded view
|

Re: Issue 1887: O2 copy class doesn't copy class side instance variables

Stan Shepherd
From the browsers, it seems that Browser works, but OBSystemBrowserAdaptor doesn't copy the class side variable either.

...Stan