This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Sam Ruby wrote:
> Andrew Haley wrote:
>>
>> Congratulations on this excellent test case.  Next time I want to tell
>> people how to do it right, I'll point them at your posting.
> 
> Hopefully that earned me the right to ask a dumb question.
> 
> Generating a header file for javax::xml::xpath::XPathExpression produces
> a 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 identifier
> before ‘namespace’
> headers/javax/xml/xpath/XPathExpression.h:42: error: expected identifier
> before ‘namespace’
> headers/javax/xml/xpath/XPathExpression.h:42: error: expected ‘,’ or
> ‘...’ before ‘namespace’
> 
> Presumably somebody has encountered this before, and there is an obvious
> solution...

Some genius (?) has a namespace called "namespace" :-)

I think you'll have to edit the header file by hand.

Andrew.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]