summaryrefslogtreecommitdiff
path: root/libjava/jni.cc
diff options
context:
space:
mode:
authorAnthony Green <green@redhat.com>2001-11-17 21:32:22 +0000
committerAnthony Green <green@gcc.gnu.org>2001-11-17 21:32:22 +0000
commitaee42017074928c401cc7faf2dffc4c00c677eb1 (patch)
tree50f5d71f5ab9a9ed10efa48b3c55cd6969433dfb /libjava/jni.cc
parent089a05b8d7a14016a8bb36c94170a1c0e72872da (diff)
downloadgcc-aee42017074928c401cc7faf2dffc4c00c677eb1.tar.gz
Obvious jni weak reference fix
From-SVN: r47128
Diffstat (limited to 'libjava/jni.cc')
-rw-r--r--libjava/jni.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libjava/jni.cc b/libjava/jni.cc
index 1aa77bc2c04..dbe1d1f4f29 100644
--- a/libjava/jni.cc
+++ b/libjava/jni.cc
@@ -212,7 +212,7 @@ unwrap (T *obj)
using namespace gnu::gcj::runtime;
// We can compare the class directly because JNIWeakRef is `final'.
// Doing it this way is much faster.
- if (obj == NULL || obj->getClass () == &JNIWeakRef::class$)
+ if (obj == NULL || obj->getClass () != &JNIWeakRef::class$)
return obj;
JNIWeakRef *wr = reinterpret_cast<JNIWeakRef *> (obj);
return reinterpret_cast<T *> (wr->get ());