NPE in parser->getDOMImplementation() with CNI
Bryce McKinlay
bmckinlay@gmail.com
Tue Jun 23 09:58:00 GMT 2009
On Tue, Jun 23, 2009 at 10:39 AM, Chris Burdess<dog@bluezoo.org> 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
More information about the Java
mailing list