summaryrefslogtreecommitdiff
path: root/libjava/prims.cc
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2005-09-06 16:01:31 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2005-09-06 16:01:31 +0000
commita9437f8a1a2aa5a9244256954b449b5d5775e06a (patch)
tree3a53772caa4302c9e6c17a8f4d8ff1296f451bb1 /libjava/prims.cc
parent39506e4e1bc64f7b05ab236283bb804338721720 (diff)
downloadgcc-a9437f8a1a2aa5a9244256954b449b5d5775e06a.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@103953 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/prims.cc')
-rw-r--r--libjava/prims.cc2
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)));