diff options
| author | green <green@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-11-17 21:32:22 +0000 |
|---|---|---|
| committer | green <green@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-11-17 21:32:22 +0000 |
| commit | 08f7afa404fe7c67c271e3d36239aa6dd0c90de0 (patch) | |
| tree | 50f5d71f5ab9a9ed10efa48b3c55cd6969433dfb /libjava/jni.cc | |
| parent | 64d9c5f7f67704aac97604c08ae5ed54550e2a9e (diff) | |
| download | ppe42-gcc-08f7afa404fe7c67c271e3d36239aa6dd0c90de0.tar.gz ppe42-gcc-08f7afa404fe7c67c271e3d36239aa6dd0c90de0.zip | |
Obvious jni weak reference fix
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47128 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/jni.cc')
| -rw-r--r-- | libjava/jni.cc | 2 |
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 ()); |

