RFR: 8268222: javax/xml/jaxp/unittest/transform/Bug6216226Test.java failed, cannot delete file
Joe Wang
joehw at openjdk.java.net
Fri Jun 4 05:22:11 UTC 2021
Revert changes in StreamResult.java made through https://github.com/openjdk/jdk/pull/4318 since it was creating a file stream on behalf of the Transformer, which resulted in a leaking file handle because the Transformer would only close files it opened.
This change instead replace the problematic file-uri-url-file conversion code with nio Paths. While we generally don't make such changes if it's not necessary as Apache still supports older versions of the JDK, we are okay with a code level 8.
-------------
Commit messages:
- 8268222: javax/xml/jaxp/unittest/transform/Bug6216226Test.java failed, cannot delete file
Changes: https://git.openjdk.java.net/jdk/pull/4353/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=4353&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8268222
Stats: 37 lines in 2 files changed: 2 ins; 24 del; 11 mod
Patch: https://git.openjdk.java.net/jdk/pull/4353.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/4353/head:pull/4353
PR: https://git.openjdk.java.net/jdk/pull/4353
More information about the core-libs-dev
mailing list