Re: NPE in parser->getDOMImplementation() with CNI

Bryce McKinlay <[email protected]>
Newsgroups gmane.comp.gcc.java.devel
Message-ID <[email protected]>
On Tue, Jun 23, 2009 at 10:39 AM, Chris Burdess<[email protected]> 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.
>
>> I think you'll have to edit the header file by hand.
>
>
> Should this not be handled by some automatic munging/unmunging in gcjh/gcj?
> It may prove to be a problem in other places where names are not keywords in
> Java but might be in C/C++/whatever.

Yes it should. The "old" gcjh certainly did this, but perhaps some of
the C++ keyword handling got lost a while back when gcjh was rewritten
in Java. The code is in
libjava/classpath/tools/gnu/classpath/tools/javah if you want to take
a look.

Bryce
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.