From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22776 invoked by alias); 23 Jun 2009 12:41:06 -0000 Received: (qmail 22768 invoked by uid 22791); 23 Jun 2009 12:41:05 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx2.redhat.com (HELO mx2.redhat.com) (66.187.237.31) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 23 Jun 2009 12:40:56 +0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n5NCeqrD001187; Tue, 23 Jun 2009 08:40:52 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n5NCeoma012332; Tue, 23 Jun 2009 08:40:50 -0400 Received: from zebedee.pink (vpn-13-101.rdu.redhat.com [10.11.13.101]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n5NCem9R004537; Tue, 23 Jun 2009 08:40:49 -0400 Message-ID: <4A40CD50.3010904@redhat.com> Date: Tue, 23 Jun 2009 12:41:00 -0000 From: Andrew Haley User-Agent: Thunderbird 2.0.0.17 (X11/20081009) MIME-Version: 1.0 To: Sam Ruby 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> In-Reply-To: <4A40B4A1.8020007@intertwingly.net> Content-Type: text/plain; charset=ISO-8859-1 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/msg00067.txt.bz2 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. > 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. Andrew.