RFR: 8256515: javax.xml.XMLEventReader produces incorrect START_DOCUMENT event

Joe Wang joehw at openjdk.java.net
Fri Dec 4 01:20:55 UTC 2020


On Thu, 3 Dec 2020 14:44:05 GMT, Marius Volkhart <github.com+1709517+MariusVolkhart at openjdk.org> wrote:

>> @MariusVolkhart Here is a PR for your branch so the test works with jtreg:
>> https://github.com/MariusVolkhart/jdk/pull/1
>> 
>> Fails before the JDK patch and passes after.
>> 
>> Run it with:
>> $ rm -rf JTwork JTreport && jtreg -jdk:./build/linux-x86_64-server-release/images/jdk -verbose:summary test/jdk/javax/xml/jaxp/8256515/XmlInputFactoryTest.java
>> Passed: javax/xml/jaxp/8256515/XmlInputFactoryTest.java
>> Test results: passed: 1
>> Results are in *.jtr files:
>> 
>> $ find JTwork/ -name *.jtr
>> JTwork/javax/xml/jaxp/8256515/XmlInputFactoryTest.jtr
>> 
>> Or using the test framework of OpenJDK with:
>> 
>> $ bash configure --with-jtreg=/path/to/jtreg [...]
>> $ make test TEST="jdk/javax/xml/jaxp/8256515/XmlInputFactoryTest.java"
>> 
>> HTH
>
> @jerboaa Thanks! That PR was immensely helpful, not just in helping get this change moving, but in helping me understand how to write the tests for next time!

When you update, pls do a merge from the latest upstream jdk master. The changeset is pretty far behind the master.

-------------

PR: https://git.openjdk.java.net/jdk/pull/1056


More information about the core-libs-dev mailing list