Integrated: 8268222: javax/xml/jaxp/unittest/transform/Bug6216226Test.java failed, cannot delete file
Joe Wang
joehw at openjdk.java.net
Fri Jun 4 16:35:01 UTC 2021
On Fri, 4 Jun 2021 05:14:13 GMT, Joe Wang <joehw at openjdk.org> wrote:
> 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.
This pull request has now been integrated.
Changeset: b27599b3
Author: Joe Wang <joehw at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/b27599b3ec3fd344fa9fa97b7ecde85d5662ca6c
Stats: 37 lines in 2 files changed: 2 ins; 24 del; 11 mod
8268222: javax/xml/jaxp/unittest/transform/Bug6216226Test.java failed, cannot delete file
Reviewed-by: dfuchs
-------------
PR: https://git.openjdk.java.net/jdk/pull/4353
More information about the core-libs-dev
mailing list