summaryrefslogtreecommitdiff
path: root/src/libjvm-jnibridge.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libjvm-jnibridge.c')
-rw-r--r--src/libjvm-jnibridge.c11
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"))));
+}