On 1/16/07, Lev Kozakov <[EMAIL PROTECTED]> wrote:
On 1/15/07, Adam Lally (JIRA) <uima-dev@incubator.apache.org> wrote:
>
> PEAR Encoding Test gives NullPointerException under Sun Java 1.4.2


Yes, Sun Java 1.4.2 cannot process BOM at the beginning of XML files. The
test fails in the XMLUtil.isValidXmlFile() method, because Sun's SAX parser
cannot process the UTF-8 BOM (signature). I can modify the test code to
assert that returned 'ecoding' string is not 'null'.


Hm, what should we do here?  I had a similar problem with the parser
Sun Java 1.4.2 not supporting XML schema validation, which we have a
test case for.

I changed that so the test detects that schema validation isn't
supported and just returns without failing.  I figured it was better
to not have our test suite fail on Sun Java 1.4.2 just because a few
(rarely used) features don't work.

-Adam

Reply via email to