On Wed, 2 Jun 2021 18:17:43 GMT, Joe Wang <jo...@openjdk.org> wrote: > 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).
I believe this is the wrong fix - or at least an incomplete fix that will hide the bug under the carpet. Looking at TransformImpl I would change line TransformImpl.java:521 to: 521: - String path = uri.getPath(); //decoded String 521: + String path = uri.getRawPath(); //raw String ------------- PR: https://git.openjdk.java.net/jdk/pull/4318