incubator-odf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Svante Schubert <>
Subject Re: test and patch : getNamespaceURI() implementation in OdfFileDom
Date Mon, 06 Feb 2012 22:39:16 GMT
Hi Ashok,

As I was traveling end of last week, I was only able to review your
patch today after it had been closed.
I have added my comments to the closed issue

It all comes down, that you had a line too much in your patch:	
mDuplicatePrefixesByUri.put(namespaceURI, prefixes);

The put() within a get() context was suspicious, but the method was broken anyway and I owe
you that you found out and provided a patch.

Thanks again,

On 02.02.2012 08:34, Ashok Hariharan wrote:
> Hello there --
> I am submitting a patched test case "xpathtest-case-patch.txt" and the
> corresponding odt file used by the test.
> To simulate the problem --
> 1) apply the patch xpathtest-case-patch.txt on the ODFDOM source
> 2) put the XPathTest-duplicate-prefix.odt in odfdom/src/test/resources
> 3) Run the src/test/java/org/odftoolkit/odfdom/dom/ unit
> test. It fails.
> 4) apply the patch odffiledom-patch.txt on OdfFileDom and run the unit
> test again. It passes.
> I have added explanatory comments in the patched unit test and the
> patched getNamespaceURI()
> thanks,
> Ashok Hariharan

View raw message