Status: Accepted
Owner:
[hidden email]
Labels: Milestone-1.2.1 Milestone-1.3
New issue 3820 by
[hidden email]: TextConstants change to SharedPool
breaks external code using at: message
http://code.google.com/p/pharo/issues/detail?id=3820If you fill an issue for the first time, please read "How to report bugs"
at
http://www.pharo-project.org/community/issue-trackingPharo image: Core 1.2, Hudson build 228
Pharo core version: #12341
Virtual machine used: 4.0.3-2202 #1 XShm Tue Apr 13 11:56:47 PDT 2010 gcc
4.3.2
The change of TextConstants from a Dictionary to a SharedPool in #3247
breaks external code like Magma that uses the message at: to access the
values stored in it and that SharedPool doesn't implement.
Henrik Sperre Johansen proposed the followin fix for backwards
compatibility:
category: 'backwards compatability'
at: aSymbol
^self classPool at: aSymbol
at: aSymbol put: aValue
^self
deprecated: 'TextConstants is not a place to store your stuff'
on: '15 March 2011'
in: 'Pharo1.2'
Attached the changeset with the code for integration in 1.2.1 and 1.3
Attachments:
TextConstants.1.cs 1.2 KB