#FEATURE by cg
authorClaus Gittinger <cg@exept.de>
Tue, 31 Jul 2018 14:28:37 +0200
changeset 4288 a55901caec8b
parent 4287 66641d57216d
child 4289 d628b74f6130
#FEATURE by cg class: ByteCodeCompiler changed: #compile:forClass:inCategory:notifying:install:skipIfSame:silent:foldConstants:ifFail: ignore source code manager errors when checking for same code.
ByteCodeCompiler.st
--- a/ByteCodeCompiler.st	Wed Jul 25 08:48:27 2018 +0200
+++ b/ByteCodeCompiler.st	Tue Jul 31 14:28:37 2018 +0200
@@ -3187,7 +3187,13 @@
     ].
 
     "check if same source"
-    (skipIfSame and:[oldMethod notNil and:[oldMethod source = sourceCodeString]]) ifTrue:[
+    (skipIfSame
+      and:[oldMethod notNil
+      and:[ (SourceCodeManagerError 
+                handle:[:ex | nil] 
+                do:[oldMethod source]
+            ) = sourceCodeString
+    ]]) ifTrue:[
         oldMethod isInvalid ifFalse:[
             silencio ifFalse:[
                 Transcript showCR:('    unchanged: ',aClass name,' ',selector)