From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2737 invoked by alias); 23 Jun 2009 13:42:26 -0000 Received: (qmail 2727 invoked by uid 22791); 23 Jun 2009 13:42:26 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from cdptpa-omtalb.mail.rr.com (HELO cdptpa-omtalb.mail.rr.com) (75.180.132.120) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 23 Jun 2009 13:42:20 +0000 Received: from [192.168.1.121] (really [75.182.92.38]) by cdptpa-omta04.mail.rr.com with ESMTP id <20090623134217874.EDJV4077@cdptpa-omta04.mail.rr.com>; Tue, 23 Jun 2009 13:42:17 +0000 Message-ID: <4A40DBB9.80703@intertwingly.net> Date: Tue, 23 Jun 2009 13:42:00 -0000 From: Sam Ruby User-Agent: Thunderbird 2.0.0.21 (X11/20090409) MIME-Version: 1.0 To: Andrew Haley CC: Bryce McKinlay , Chris Burdess , java@gcc.gnu.org Subject: Re: namespace namespace References: <4A3D95F1.6040803@intertwingly.net> <4A3E55E1.6010705@redhat.com> <4A403949.4090401@intertwingly.net> <4A40A09E.5040502@redhat.com> <9DAA724F-CC05-4A04-8B4D-386238D1D223@bluezoo.org> <7230133d0906230257j6b69373fj1709af1ee85d7bf8@mail.gmail.com> <4A40B4A1.8020007@intertwingly.net> <4A40CD50.3010904@redhat.com> In-Reply-To: <4A40CD50.3010904@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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-06/txt/msg00069.txt.bz2 Andrew Haley wrote: > Sam Ruby wrote: >> Bryce McKinlay wrote: >>> On Tue, Jun 23, 2009 at 10:39 AM, Chris Burdess wrote: >>> >>>>> Some genius (?) has a namespace called "namespace" :-) >>>> That would be Sun. And in Java "namespace" is not a keyword so it's a >>>> perfectly legal package name. >> namespace also happens to be the name of a concept in XML... >> >>>>> I think you'll have to edit the header file by hand. >> To what? Specifically, what should namespace "namespace" be mapped to? > > namespace$ > >> It is beginning to appear to me that gcj/g++ will do name mangling of >> Java packages without regard to C++ reserved words, resulting in entry >> points that can't conveniently be referenced in C++ using CNI. > > That's right. It should be fairly easy to fix this, though. Just so that I'm clear: what you are saying is that *both* gcj/g++ and gcjh need to be fixed. I believe that doing such, while necessary, would break the binary interface: in particular code which is compiled today to call into JAXP would not work with new versions of JAXP that are compiled with a version of gcj/g++ which has this fix. Is that OK? >> Where can I find the "old" gcjh? The current code is in Java, which >> presumably does *not* have the mapping: >> >> http://cvs.savannah.gnu.org/viewvc/classpath/tools/gnu/classpath/tools/javah/?root=classpath > > But this is easily fixable, as I pointed out in my previous massage. > > The old gcjh is very out of date. I'd just fix the current code. Is that "I'd" or "I'll" :-) Is there something more I can provide? Will gcj/g++ also be fixed? > Andrew. - Sam Ruby