Mantis - tweak
Viewing Issue Advanced Details
3057 Any minor always 02-22-06 22:52 02-22-06 22:52
sriggins  
 
normal  
new  
open  
none    
none  
0003057: Loading monticello class which used to have CObject superclass fails
here is the use case:

I had SophieMediaEvent inherit from CObject. SophieTestingMediaEvent inherited from SophieMediaEvent.

The package that SophieTestingMediaEvent was in was not in the normal release. When Michael changed SophieMediaEvent to inherit from Object, SophieTestingMediaEvent was not in his system.

Fast forward a month or two and trying to load the package with SophieTestingMediaEvent failed, see partial log below, because its loading a class that used to inherit from CObject, but no longer does.

The hack fix was this:

* save image
* Change superclass back to CObject (borking up the class)
* Load borked package. old field IVs are deleted
* add in regular IVs back and write normal setter/getters
* check package in
* QUIT DO NOT SAVE IMAGE
* Open Image
* Reload package from MC.
* all fixed



MessageNotUnderstood: SophieTestingMediaEvent class>>classFields
22 February 2006 12:16:10 pm

VM: Mac OS - a SmalltalkImage
Image: Squeak3.8 [latest update: 0006665]

SecurityManager state:
Restricted: false
FileAccess: true
SocketAccess: true
Working Dir /Users/vampira/Documents/Sophie/working images/build-6-4
Trusted Dir /Users/vampira/Documents/Sophie/working images/build-6-4
Untrusted Dir foobar/tooBar/forSqueak/bogus

SophieTestingMediaEvent class(Object)>>doesNotUnderstand:
Receiver: SophieTestingMediaEvent
Arguments and temporary variables:
aMessage: classFields
Receiver's instance variables:

There are no notes attached to this issue.