From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29634 invoked by alias); 5 Sep 2005 22:20:31 -0000 Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org Received: (qmail 29429 invoked by uid 48); 5 Sep 2005 22:20:16 -0000 Date: Mon, 05 Sep 2005 22:20:00 -0000 Message-ID: <20050905222016.29428.qmail@sourceware.org> From: "mckinlay at redhat dot com" To: java-prs@gcc.gnu.org In-Reply-To: <20050905185100.23739.fitzsim@redhat.com> References: <20050905185100.23739.fitzsim@redhat.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug libgcj/23739] JNI: IsAssignableFrom reverses arguments X-Bugzilla-Reason: CC X-SW-Source: 2005-q3/txt/msg00526.txt.bz2 List-Id: ------- 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