Hi all, Several JMH tests fails 'Cannot invoke "java.io.InputStream.available()" because "is" is null', because the file 'build/linux-x86_64-server-release/images/test/micro/benchmarks.jar' missing the required xml input file defined by test/micro/org/openjdk/bench/javax/xml/AbstractXMLMicro.java. This PR copy the required xml file to benchmarks.jar, and remove two unexist xml input file.
After this PR, below JMH tests will run passes. org.openjdk.bench.javax.xml.DOM.testBuild org.openjdk.bench.javax.xml.DOM.testModify org.openjdk.bench.javax.xml.DOM.testWalk org.openjdk.bench.javax.xml.SAXUsingJDK.testParse org.openjdk.bench.javax.xml.STAX.testParse Test command: rm -rf build/jmh-result/ ; mkdir -p build/jmh-result/ ; time for test in `cat list.txt` ; do time make test TEST="micro:$test" MICRO="FORK=1;WARMUP_ITER=2" CONF=release &> build/jmh-result/$test.log ; done Change has been verified locally, no risk. ------------- Commit messages: - 8350051: [JMH] Several tests fails NPE Changes: https://git.openjdk.org/jdk/pull/23625/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=23625&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8350051 Stats: 9 lines in 2 files changed: 5 ins; 2 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/23625.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/23625/head:pull/23625 PR: https://git.openjdk.org/jdk/pull/23625