[Bug libgcj/23739] JNI: IsAssignableFrom reverses arguments

mckinlay at redhat dot com gcc-bugzilla@gcc.gnu.org
Mon Sep 5 22:20:00 GMT 2005

------- 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


More information about the Java-prs mailing list