aboutsummaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.jni/PR28178.java
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2006-06-27 15:33:24 +0000
committerTom Tromey <tromey@gcc.gnu.org>2006-06-27 15:33:24 +0000
commit10caa6ef967b225ec6e3657a3d76fea35acef0a7 (patch)
tree13cfcf691ed1709219a0b4189d313ba52839509e /libjava/testsuite/libjava.jni/PR28178.java
parent578089dba034de92992b968615ea5ca3625f6aed (diff)
downloadgcc-10caa6ef967b225ec6e3657a3d76fea35acef0a7.zip
gcc-10caa6ef967b225ec6e3657a3d76fea35acef0a7.tar.gz
gcc-10caa6ef967b225ec6e3657a3d76fea35acef0a7.tar.bz2
re PR libgcj/28178 (jniEnv->DeleteLocalRef (null) fails)
PR libgcj/28178: * jni.cc (_Jv_JNI_DeleteLocalRef): Ignore null argument. (_Jv_JNI_DeleteGlobalRef): Likewise. * testsuite/libjava.jni/PR28178.java: New file. * testsuite/libjava.jni/PR28178.c: New file. * testsuite/libjava.jni/PR28178.out: New file. From-SVN: r115034
Diffstat (limited to 'libjava/testsuite/libjava.jni/PR28178.java')
-rw-r--r--libjava/testsuite/libjava.jni/PR28178.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/libjava/testsuite/libjava.jni/PR28178.java b/libjava/testsuite/libjava.jni/PR28178.java
new file mode 100644
index 0000000..f8d7b90
--- /dev/null
+++ b/libjava/testsuite/libjava.jni/PR28178.java
@@ -0,0 +1,15 @@
+// Regression test for PR 28178.
+
+public class PR28178
+{
+ static {
+ System.loadLibrary("PR28178");
+ }
+
+ public static native void m();
+
+ public static void main(String[] args)
+ {
+ m();
+ }
+}