changed #compileToMachineCode:forClass:selector:inCategory:notifying:install:skipIfSame:silent: expeccoNET_1_4_0rc1 expecco_1_7_0rc3 expecco_1_7_0rc5
authorStefan Vogel <sv@exept.de>
Mon, 15 Jun 2009 18:43:14 +0200
changeset 2185 cb311d08a486
parent 2184 5740ebfeba2c
child 2186 7af603c810b7
changed #compileToMachineCode:forClass:selector:inCategory:notifying:install:skipIfSame:silent: create stub when loading of machine code fails
STCCompilerInterface.st
--- a/STCCompilerInterface.st	Fri Jun 12 14:39:49 2009 +0200
+++ b/STCCompilerInterface.st	Mon Jun 15 18:43:14 2009 +0200
@@ -239,7 +239,10 @@
         handle := ObjectFileLoader loadMethodObjectFile:moduleFileName.
         handle isNil ifTrue:[
             OperatingSystem removeFile:moduleFileName.
-            originator parseError:'dynamic load of machine code failed' position:1.
+            "catch, so that #CannotLoad processing is done"
+            Parser::ParseError catch:[
+                originator parseError:'dynamic load of machine code failed' position:1.
+            ].
             ^ #CannotLoad
         ].
 
@@ -737,7 +740,7 @@
 !STCCompilerInterface class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libcomp/STCCompilerInterface.st,v 1.10 2008-01-24 14:16:30 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libcomp/STCCompilerInterface.st,v 1.11 2009-06-15 16:43:14 stefan Exp $'
 ! !
 
 STCCompilerInterface initialize!