added field and method resolution
[cacao.git] / src / cacao / cacao.c
index 8156e13efe99a86813b40e69a1bf2002c2a6d67e..1c4945840e96f99115b0d3441538d49d886240bb 100644 (file)
@@ -37,7 +37,7 @@
      - Calling the class loader
      - Running the main method
 
-   $Id: cacao.c 997 2004-03-30 21:49:28Z twisti $
+   $Id: cacao.c 1009 2004-03-31 22:44:07Z edwin $
 
 */
 
@@ -924,9 +924,11 @@ int main(int argc, char **argv)
 
 /*             heap_addreference((void**) &a); */
 
-               mainmethod = class_findmethod(topclass,
+               mainmethod = class_resolveclassmethod(topclass,
                                                                          utf_new_char("main"), 
-                                                                         utf_new_char("([Ljava/lang/String;)V")
+                                                                         utf_new_char("([Ljava/lang/String;)V"),
+                                                                               topclass,
+                                                                               true
                                                                          );
 
                /* there is no main method or it isn't static */