From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30310 invoked by alias); 20 Jul 2009 08:28:32 -0000 Received: (qmail 30301 invoked by uid 22791); 20 Jul 2009 08:28:31 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mail.enyo.de (HELO mail.enyo.de) (212.9.189.167) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 20 Jul 2009 08:28:24 +0000 Received: from deneb.vpn.enyo.de ([212.9.189.177] helo=deneb.enyo.de) by mail.enyo.de with esmtp id 1MSoEL-00085E-UJ; Mon, 20 Jul 2009 10:28:18 +0200 Received: from fw by deneb.enyo.de with local (Exim 4.69) (envelope-from ) id 1MSoEL-0002Hx-5Y; Mon, 20 Jul 2009 10:28:17 +0200 From: Florian Weimer To: Andrew Haley Cc: Mathieu Malaterre , java@gcc.gnu.org Subject: Re: error: 'jvariant::jvariant(jbyte)' cannot be overloaded References: <87ab31nrc2.fsf@mid.deneb.enyo.de> <4A62D0B7.6010301@redhat.com> <87eisddr3y.fsf@mid.deneb.enyo.de> <4A6338DE.7040700@redhat.com> <8763do5wt8.fsf@mid.deneb.enyo.de> <4A642814.7030101@redhat.com> Date: Mon, 20 Jul 2009 08:28:00 -0000 In-Reply-To: <4A642814.7030101@redhat.com> (Andrew Haley's message of "Mon, 20 Jul 2009 09:17:24 +0100") Message-ID: <87ab2zoj1a.fsf@mid.deneb.enyo.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-IsSubscribed: yes Mailing-List: contact java-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-owner@gcc.gnu.org X-SW-Source: 2009-07/txt/msg00051.txt.bz2 * Andrew Haley: >> Right. I still think it's a bug which should be fixed. It's also >> easy to pick up GCC's when compiling for OpenJDK, so it's not >> just GCJ which is affected by this. > > Well, it mostly is, since JNI code is mostly written in C. Not sure about this. > I suppose that's why this has never been noticed before. javah generats an extern "C" wrapper for the prototypes, so you're still ABI-compatible to the JNI interface even if you use C++.