This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgcj/23739] JNI: IsAssignableFrom reverses arguments
- From: "mckinlay at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Sep 2005 22:20:15 -0000
- Subject: [Bug libgcj/23739] JNI: IsAssignableFrom reverses arguments
- References: <20050905185100.23739.fitzsim@redhat.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From mckinlay at redhat dot com 2005-09-05 22:20 -------
IMO Sun actually got it wrong here ;-) Reading function arguments from
left-to-right, I'd expect the first argument to be the context ("Is") and the
second to be the class refered to in (the "From").
Having said that, it is rather confusing that the order is reversed between JNI
and libgcj's internal function. I agree we should fix it, though there are a lot
of callers to update. It is not an issue for CNI, because IsAssignableFrom is
not exposed as a public CNI function.
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|IsAssignableFrom reverses |JNI: IsAssignableFrom
|arguments |reverses arguments
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23739