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

Reply via email to