diff options
author | Jari Vetoniemi <mailroxas@gmail.com> | 2018-02-20 08:44:42 +0200 |
---|---|---|
committer | Jari Vetoniemi <mailroxas@gmail.com> | 2018-02-20 08:44:42 +0200 |
commit | a0b1835621f7d3ed9fc0e142550cf29720615096 (patch) | |
tree | 5b8c903190c75f10e1753c1ec50a446c2192ceb0 /src/libjvm-jnibridge.c | |
parent | a08dd25eb79ed44ae06db2b95d4b44d77ea68110 (diff) |
Messy commit of hacks and implementations
Diffstat (limited to 'src/libjvm-jnibridge.c')
-rw-r--r-- | src/libjvm-jnibridge.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libjvm-jnibridge.c b/src/libjvm-jnibridge.c new file mode 100644 index 0000000..b8c8592 --- /dev/null +++ b/src/libjvm-jnibridge.c @@ -0,0 +1,11 @@ +#include <stdarg.h> +#include <stdio.h> +#include <assert.h> +#include "jvm/jni.h" + +jobject +bitter_jnibridge_JNIBridge_newInterfaceProxy(JNIEnv *env, jobject object, va_list args) +{ + static jobject sv; + return (sv ? sv : (sv = (*env)->AllocObject(env, (*env)->FindClass(env, "java/lang/reflect/Proxy")))); +} |