Mantis - Squeak
Viewing Issue Advanced Details
7080 Monticello major always 06-04-08 23:25 06-07-08 02:42
matthewf  
 
normal  
feedback  
open  
none    
none  
0007080: In MC1.5, Packages with traits seem to behave incorrectly in some repositories
In my image, with Kernel-Extensions-kph.45 and Monticello.impl-kph.505, I try printing this, and it answers true, as it should:

SmalltalkImage current freeSpace.
((MCHttpRepository
        location: 'http://source.squeakfoundation.org/310' [^]
        user: '' password: '')
        versionFromFileNamed: 'Traits-dc.229.mcz')
        snapshot definitions anySatisfy: [:ea |
                ea isKindOf: MCTraitDefinition]

However, I print this, and it answers false:

SmalltalkImage current freeSpace.
(MCCacheRepository default
        versionFromFileNamed: 'Traits-dc.229.mcz')
        snapshot definitions anySatisfy: [:ea |
                ea isKindOf: MCTraitDefinition]

The only significant difference I see is which repository you load it from, but in the latter, it is completely broken (MC says that Traits are Classes)
 Object-readDataFromsize.st [^] (1,325 bytes) 06-04-08 23:27

Notes
(0012255)
matthewf   
06-04-08 23:29   
Object-readDataFromsize.st is a file-out of a modification I made to that method to halt whenever the reader finds the MCDefinition of TTraitsCategorisingDescription in the file.

When this halt traps in the first do-it, you are reading a MCTraitDefinition; within the second do-it, you are reading a MCClassDefinition
(0012267)
Keith_Hodges   
06-07-08 02:35   
Should be fixed in Monticello.impl-kph.515