JDK 9 RFR of 8152272: Unable to create temporary file using createTempFile method if System.getProperty("file.separator") is used

Brian Burkhalter brian.burkhalter at oracle.com
Fri Jan 6 00:54:43 UTC 2017

Please review at your convenience.

Issue:	https://bugs.openjdk.java.net/browse/JDK-8152272
Patch:	http://cr.openjdk.java.net/~bpb/8152272/webrev.00/

Normalize the file name component of the temporary file path. This at least makes the behavior of java.io.File.createTempFile() consistent with that of java.nio.file.Files.createTempFile(). Or would it be better simply to continue to throw the IOException in this situation in which case the bug may be resolved as “Not an Issue” or “Wont Fix?”



More information about the nio-dev mailing list