@@ -0,0 +1,968 @@
+package com.fasterxml.jackson.dataformat.xml.failing;%0A%0Aimport java.nio.charset.StandardCharsets;%0A%0Aimport com.fasterxml.jackson.core.exc.StreamReadException;%0Aimport com.fasterxml.jackson.dataformat.xml.XmlMapper;%0Aimport com.fasterxml.jackson.dataformat.xml.XmlTestBase;%0A%0A// %5Bdataformat-xml#463%5D%0A// (but root cause of https://github.com/FasterXML/woodstox/issues/123)%0Apublic class XmlParserErrorHandling463Test extends XmlTestBase%0A%7B%0A    private final XmlMapper MAPPER = newMapper();%0A%0A    public void testInvalidXmlDecl() throws Exception%0A    %7B%0A        final byte%5B%5D doc = %22%3C?xml version=%5C%221.1%5C%22 encoding=%5C%22U%5C%22?%3E%22.getBytes(StandardCharsets.UTF_8);%0A        try %7B%0A            MAPPER.readTree(doc);%0A            fail(%22Should not pass%22);%0A        %7D catch (StreamReadException e) %7B%0A            verifyException(e, %22Unsupported encoding: U%22);%0A        %7D catch (RuntimeException e) %7B%0A            fail(%22Should fail with specific %60StreamReadException%60 but got: %22+e);%0A        %7D%0A    %7D%0A%7D%0A

Add a failing test for #463 -- fix will be in Woodstox 6.2.5 when released