| Subject: | Re: NPE in parser->getDOMImplementation() with CNI |
|---|---|
| From: | Chris Burdess |
| Date: | Tue, 23 Jun 2009 10:39:53 +0100 |
Andrew Haley wrote: Sam Ruby wrote:Generating a header file for javax::xml::xpath::XPathExpression producesa file that looks like the following: http://git.etherboot.org/scm/people/mcb30/gcc/libjava/javax/xml/xpath/XPathExpression.h Attempting to include this file produces:headers/javax/xml/xpath/XPathExpression.h:16: error: expected identifierbefore ‘namespace’headers/javax/xml/xpath/XPathExpression.h:42: error: expected identifierbefore ‘namespace’ headers/javax/xml/xpath/XPathExpression.h:42: error: expected ‘,’ or ‘...’ before ‘namespace’Presumably somebody has encountered this before, and there is an obvioussolution...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. -- Chris Burdess |
| Previous by Date: | Re: NPE in parser->getDOMImplementation() with CNI, Andrew Haley |
|---|---|
| Next by Date: | Re: NPE in parser->getDOMImplementation() with CNI, Bryce McKinlay |
| Previous by Thread: | Re: NPE in parser->getDOMImplementation() with CNI, Andrew Haley |
| Next by Thread: | Re: NPE in parser->getDOMImplementation() with CNI, Bryce McKinlay |
| Indexes: | [Date] [Thread] [Top] [All Lists] |