Avoid initing the class in more cases. Cleanup error handling a bit.
commit5e9d48ad706e6c807bb9321c28c2ee310e55a096
authorRodrigo Kumpera <kumpera@gmal.com>
Thu, 12 Aug 2010 21:35:24 +0000 (12 18:35 -0300)
committerRodrigo Kumpera <kumpera@gmal.com>
Fri, 13 Aug 2010 14:44:23 +0000 (13 11:44 -0300)
tree1c39c8bc5bf60006ab882e3b4f9b8d79a5a29cc0
parenta50db3cf830b3a1391f767a69ff692b4ac5f5bab
Avoid initing the class in more cases. Cleanup error handling a bit.

* class.c (mono_class_get_methods): Don't mono_class_init
the type.

* class.c (mono_class_get_properties): Ditto.

* class.c (mono_class_get_events): Ditto.

* icall.c (ves_icall_Type_GetMethodsByName): Ditto.

* icall.c (ves_icall_Type_GetConstructors_internal): Ditto.

* icall.c (ves_icall_Type_GetPropertiesByName): Don't
mono_class_init the types. Move error handling to a label
at the end of the function.

* icall.c (ves_icall_Type_GetEvents_internal): Ditto.
mono/metadata/class.c
mono/metadata/icall.c