From 535779b6ff5cd21590e5ed3aff3c9ae4c785e34d Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Mon, 19 Feb 2018 13:12:57 +0200 Subject: jvm: Implement more java apis --- src/jvm/jvm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/jvm') 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 -- cgit v1.2.3-70-g09d2