JavaContext.st
changeset 3083 ccde6af7278c
parent 2902 b7070e447ed0
child 3196 d617b4590431
--- a/JavaContext.st	Wed Apr 16 18:27:24 2014 +0200
+++ b/JavaContext.st	Wed Apr 16 18:53:52 2014 +0200
@@ -337,7 +337,11 @@
 argsAndVars
     "return an array filled with the arguments and variables of this context"
 
-    ^ self method originalMethodIfWrapped methodArgAndVarValuesInContext: self.
+    |rawArgsAndVars|
+
+    rawArgsAndVars := self method originalMethodIfWrapped methodArgAndVarValuesInContext: self.
+    self method isStatic ifFalse:[^ rawArgsAndVars copyFrom:2].
+    ^ rawArgsAndVars
 
     "Created: / 04-11-2013 / 18:45:43 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !