X Tutup
Skip to content

Commit 88120a0

Browse files
author
Johan Brichau
committed
Proper fix for GRDynamicVariable in GS2.4
1 parent 3acc5b0 commit 88120a0

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
accessing
22
value
3-
"Override required for compatibility in GS2.4"
3+
"Override required for compatibility in GS2.4 where environmentAt:ifAbsent: is flawed because it can still return nil when absent instead of executing the ifAbsent block"
44

5-
^ Processor activeProcess environmentAt: self ifAbsent: [ self default ]
5+
^ Processor activeProcess environment
6+
ifNil: [ self defaultValue ]
7+
ifNotNil: [ :env | env at: self ifAbsent: [ self defaultValue ] ]

repository/Grease-GemStone-Core.package/GRDynamicVariable.class/methodProperties.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
"default" : "JohanBrichau 07/23/2017 09:48",
44
"defaultValue" : "JohanBrichau 07/23/2017 09:47",
55
"use:during:" : "JB 09/08/2017 00:34",
6-
"value" : "JohanBrichau 10/04/2017 04:18" },
6+
"value" : "JohanBrichau 10/04/2017 04:35" },
77
"instance" : {
88
} }

0 commit comments

Comments
 (0)
X Tutup