#include "mm/memory.h"
#include "native/jni.h"
+#include "native/llni.h"
#include "vm/global.h" /* required by java_lang_String.h */
#include "native/include/java_lang_String.h"
#include "vm/jit/asmpart.h"
+#include "vmcore/class.h"
#include "vmcore/method.h"
#include "vmcore/options.h"
void properties_system_add(java_handle_t *p, char *key, char *value)
{
+ classinfo *c;
methodinfo *m;
java_handle_t *k;
java_handle_t *v;
/* search for method to add properties */
- m = class_resolveclassmethod(p->vftbl->class,
+ LLNI_class_get(p, c);
+
+ m = class_resolveclassmethod(c,
utf_put,
utf_new_char("(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;"),
NULL,
void properties_system_add_all(java_handle_t *p)
{
list_properties_entry_t *pe;
+ classinfo *c;
methodinfo *m;
java_handle_t *key;
java_handle_t *value;
/* search for method to add properties */
- m = class_resolveclassmethod(p->vftbl->class,
+ LLNI_class_get(p, c);
+
+ m = class_resolveclassmethod(c,
utf_put,
utf_new_char("(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;"),
NULL,