This is the mail archive of the java-prs@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libgcj/23739] JNI: IsAssignableFrom reverses arguments


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]