|
The result of:
| dictionary | dictionary := WeakValueDictionary with: 'hello' -> 'world' copy. Smalltalk garbageCollect. { dictionary values includes: nil. dictionary at: 'hello'. dictionary at: 'hello' ifAbsent: [ 'absent' ]. dictionary at: 'hello' ifAbsentPut: [ 'put' ]. }
is:
#(true nil nil nil)
but we would expect:
| dictionary | dictionary := WeakValueDictionary with: 'hello' -> 'world' copy. Smalltalk garbageCollect. { dictionary values includes: nil. ---> false dictionary at: 'hello'. ---> NotFound signal dictionary at: 'hello' ifAbsent: [ 'absent' ]. ---> 'absent' dictionary at: 'hello' ifAbsentPut: [ 'put' ]. ---> 'put' }
Link: pharo-dev thread titled "WeakValueDictionary: shouldn't be "absent" after GC?"
|
|
|
Priority: 5 – Fix If Time
|
|
Status: Work Needed
|
|
Assigned to: Everyone
|
|
Milestone: Later
|
Go to Case
|
|