Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001478 [Squeak] System minor always 07-15-05 23:51 07-29-06 02:37
Reporter masm View Status public  
Assigned To
Priority normal Resolution open  
Status new   Product Version 3.8
Summary 0001478: [BUG] WeakArray and storeString
Description "Pavel Krivanek" <>:
>WeakArrays cannot be stored using storeString.
>WeakArray new storeString --> '#()'

In this case, it should result in something like 'WeakArray new'. Like it
is now, using Object>>readFrom: on the string will result in an Array, instead
of WeakArray.
Additional Information Tested on 3.8-6665.
Attached Files

- Relationships

- Notes
(0006262 - 497 - 545 - 545 - 545 - 545 - 545)
nicolas cellier
07-29-06 02:37

Anyway, using storeString with a WeakArray has not much sense:

storeString would not preserve objects identity: code generated would create copies of shared objects when readFrom:

Thus, the resulting WeakArray (if class preserved) would loose all its contents at next garbage collection.

storeString really is a message for simple objects tree. Avoid using on complex object graphs.

See package ProgramRebuilder at VW cincom public store for getting a refactoring idea of storeString.

- Issue History
Date Modified Username Field Change
07-15-05 23:51 masm New Issue
12-10-05 12:41 pmm Issue Monitored: pmm
07-29-06 02:37 nicolas cellier Note Added: 0006262

Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
35 total queries executed.
28 unique queries executed.
Powered by Mantis Bugtracker