https://bugs.freedesktop.org/show_bug.cgi?id=84237
Priority: medium
Bug ID: 84237
Assignee: [email protected]
Blocks: 39625
Summary: Method setErrorHandler in documentbuilder not working
Severity: normal
Classification: Unclassified
OS: All
Reporter: [email protected]
Hardware: Other
Status: UNCONFIRMED
Version: unspecified
Component: Libreoffice
Product: LibreOffice
===Method setErrorHandler not working===
Background:
To make some CppUnit Tests working (Bug 39625), it was one task to fix the
unoxml/test/domtest.cxx. But this test depends on the possibility to overwrite
the Errorhandler of the parser (unoxml/source/dom/documentbuilder.cxx: method:
setErrorHandler). In order to make this test working again, this method has to
be fixed. At the moment it looks like the passed errorhandler is overwritten or
even not used at all. For reproduction you can uncomment the method
errorInputTest() in unoxml/test/domtest.cxx and run the test, and it will throw
exeptions, because the wrong errorhandler is used.
More Information:
The DocumentBuilder wrapps the SAX parser and the SAX parser wrapps the
external expat library.
The domtest.cxx is for testing the parser with different xml snippets. It was
designed for checking valid input, warnings, errors and fatal errors in the
xml.
There are still some more tests in it, but for now they are commented out.
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs