diff options
author | Tom Tromey <tromey@redhat.com> | 2005-09-06 16:01:31 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2005-09-06 16:01:31 +0000 |
commit | 852993e3817924f37fdfa9d8c6b191cb30934cfb (patch) | |
tree | 3a53772caa4302c9e6c17a8f4d8ff1296f451bb1 /libjava/prims.cc | |
parent | 3e248b831501dcc1b222a2f27e880eff0b54e523 (diff) | |
download | gcc-852993e3817924f37fdfa9d8c6b191cb30934cfb.tar.gz |
re PR libgcj/23739 (JNI: IsAssignableFrom reverses arguments)
PR libgcj/23739:
* testsuite/libjava.jni/pr23739.c: New file.
* testsuite/libjava.jni/pr23739.java: New file.
* testsuite/libjava.jni/pr23739.out: New file.
* jni.cc (_Jv_JNI_IsAssignableFrom): Reversed arguments.
* java/lang/reflect/natMethod.cc (invoke): Updated.
* java/lang/natClass.cc (isAssignableFrom): Updated.
(isInstance): Likewise.
(_Jv_IsAssignableFrom): Reversed arguments.
(_Jv_IsInstanceOf): Updated.
(_Jv_CheckCast): Likewise.
(_Jv_CheckArrayStore): Likewise.
(_Jv_IsAssignableFromSlow): Reversed arguments.
(_Jv_InterfaceAssignableFrom): Likewise.
* link.cc (verify_type_assertions): Updated.
* prims.cc (_Jv_CheckAccess): Updated.
From-SVN: r103953
Diffstat (limited to 'libjava/prims.cc')
-rw-r--r-- | libjava/prims.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libjava/prims.cc b/libjava/prims.cc index af177241acf..ba5c9efd260 100644 --- a/libjava/prims.cc +++ b/libjava/prims.cc @@ -1557,7 +1557,7 @@ _Jv_CheckAccess (jclass self_klass, jclass other_klass, jint flags) return ((self_klass == other_klass) || ((flags & Modifier::PUBLIC) != 0) || (((flags & Modifier::PROTECTED) != 0) - && _Jv_IsAssignableFromSlow (other_klass, self_klass)) + && _Jv_IsAssignableFromSlow (self_klass, other_klass)) || (((flags & Modifier::PRIVATE) == 0) && _Jv_ClassNameSamePackage (self_klass->name, other_klass->name))); |