Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
- $Id: method.c 8315 2007-08-15 22:49:20Z panzi $
+ $Id: method.c 8318 2007-08-16 10:05:34Z michi $
*/
#include "mm/memory.h"
+#include "native/llni.h"
+
#include "threads/lock-common.h"
#include "vm/builtin.h"
*******************************************************************************/
-java_objectarray *method_get_parametertypearray(methodinfo *m)
+java_handle_objectarray_t *method_get_parametertypearray(methodinfo *m)
{
- methoddesc *md;
- typedesc *paramtypes;
- int32_t paramcount;
- java_objectarray *oa;
- int32_t i;
- classinfo *c;
+ methoddesc *md;
+ typedesc *paramtypes;
+ int32_t paramcount;
+ java_handle_objectarray_t *oa;
+ int32_t i;
+ classinfo *c;
md = m->parseddesc;
if (!resolve_class_from_typedesc(¶mtypes[i], true, false, &c))
return NULL;
- oa->data[i] = c;
+ LLNI_array_direct(oa, i) = (java_object_t *) c;
}
return oa;
*******************************************************************************/
-java_objectarray *method_get_exceptionarray(methodinfo *m)
+java_handle_objectarray_t *method_get_exceptionarray(methodinfo *m)
{
- java_objectarray *oa;
- classinfo *c;
- s4 i;
+ java_handle_objectarray_t *oa;
+ classinfo *c;
+ s4 i;
/* create class-array */
if (c == NULL)
return NULL;
- oa->data[i] = c;
+ LLNI_array_direct(oa, i) = (java_object_t *) c;
}
return oa;