From a0b1835621f7d3ed9fc0e142550cf29720615096 Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Tue, 20 Feb 2018 08:44:42 +0200 Subject: Messy commit of hacks and implementations --- src/libjvm-jnibridge.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/libjvm-jnibridge.c (limited to 'src/libjvm-jnibridge.c') 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 +#include +#include +#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")))); +} -- cgit v1.2.3-70-g09d2