src/JavaClass.st
branchjk_new_structure
changeset 1286 c974ff108e7f
parent 1281 b46adbe75503
child 1288 444181770028
--- a/src/JavaClass.st	Thu Dec 15 08:32:05 2011 +0000
+++ b/src/JavaClass.st	Thu Dec 15 20:46:35 2011 +0000
@@ -1419,6 +1419,19 @@
 
     | method  selector class args|
     selector := aMessage selector.
+
+    (selector includes: $() ifTrue:[
+        "Java selector, search static methods"    
+        method := methodDictionary at:selector.
+        method notNil ifTrue:[
+            method isStatic ifTrue:[
+                ^ method
+                    valueWithReceiver:self
+                    arguments:#()
+            ].
+        ].
+    ].
+
     args := aMessage arguments.
     class := self class.
 
@@ -1444,7 +1457,7 @@
 
     "Modified: / 16-11-1998 / 16:50:56 / cg"
     "Modified: / 19-09-2011 / 23:43:56 / Jan Kurs <kursjan@fit.cvut.cz>"
-    "Modified: / 10-12-2011 / 20:14:49 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+    "Modified: / 15-12-2011 / 21:43:59 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
 lookupMethodFor:selector