diff options
author | Jari Vetoniemi <mailroxas@gmail.com> | 2018-02-19 13:12:57 +0200 |
---|---|---|
committer | Jari Vetoniemi <mailroxas@gmail.com> | 2018-02-19 13:12:57 +0200 |
commit | 535779b6ff5cd21590e5ed3aff3c9ae4c785e34d (patch) | |
tree | 0de3478713ad5c33d90f00194702e9520e33af7a /src/jvm | |
parent | 12f987e88031c5cbd9ff6534b9279b11219510ac (diff) |
jvm: Implement more java apis
Diffstat (limited to 'src/jvm')
-rw-r--r-- | src/jvm/jvm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/jvm/jvm.c b/src/jvm/jvm.c index 6c1b244..130c017 100644 --- a/src/jvm/jvm.c +++ b/src/jvm/jvm.c @@ -175,7 +175,7 @@ jvm_find_object(struct jvm *jvm, const struct jvm_object *o) return (jobject)(i + 1); } - return 0; + return NULL; } static jclass @@ -493,6 +493,7 @@ jvm_form_symbol(struct jvm *jvm, jmethodID method_id, char *symbol, const size_t printf("%s::%s::%s\n", jvm_get_object(jvm, method->klass)->klass.name.data, method->name.data, method->signature.data); snprintf(symbol, symbol_sz, "%s_%s", jvm_get_object(jvm, method->klass)->klass.name.data, method->name.data); cstr_replace(symbol, '/', '_'); + cstr_replace(symbol, '$', '_'); } static jobject |