RFR: 8266019: StreamResult(File) writes to incorrect file path if # is part of the file path

Joe Wang joehw at openjdk.java.net
Wed Jun 2 18:25:39 UTC 2021


Special characters are different in File and URI. Treat File input as File using FileInputStream instead of converting to an URI, but fall back to URI in case of error for compatibility (in error handling).

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

Commit messages:
 - 8266019: StreamResult(File) writes to incorrect file path if # is part of the file path

Changes: https://git.openjdk.java.net/jdk/pull/4318/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=4318&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8266019
  Stats: 39 lines in 2 files changed: 31 ins; 1 del; 7 mod
  Patch: https://git.openjdk.java.net/jdk/pull/4318.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/4318/head:pull/4318

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


More information about the core-libs-dev mailing list