Retro68/gcc/libjava/testsuite/libjava.jni/pr18278.c

11 lines
196 B
C
Raw Normal View History

2012-03-27 23:13:14 +00:00
#include <jni.h>
#include <stdio.h>
#include "pr18278.h"
jobject Java_pr18278_weakRef(JNIEnv *env, jclass cls, jobject data)
{
jobject r = (* env)->NewWeakGlobalRef(env, data);
return r;
}