/* src/native/vm/reflection.cpp - helper functions for java/lang/reflect
- Copyright (C) 2007, 2008
+ Copyright (C) 1996-2011
CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
This file is part of CACAO.
#include "native/vm/reflection.hpp"
#include "vm/access.hpp"
+#include "vm/array.hpp"
#include "vm/jit/builtin.hpp"
#include "vm/exceptions.hpp"
#include "vm/global.h"
/* check if we got the right number of arguments */
+ ObjectArray oa(params);
+
if (((params == NULL) && (paramcount != 0)) ||
- (params && (LLNI_array_size(params) != paramcount)))
+ (params && (oa.get_length() != paramcount)))
{
exceptions_throw_illegalargumentexception();
return NULL;
int32_t numParameters = method_get_parametercount(m);
- if (numParameters < 0)
- return NULL;
-
/* get ConstantPool */
java_handle_t* h = native_new_and_init(class_sun_reflect_ConstantPool);