namespace namespace

Andrew Haley
Tue Jun 23 12:41:00 GMT 2009

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?


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

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.


More information about the Java mailing list