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