RFR: 8189953: FileHandler constructor throws NoSuchFileException with absolute path
Daniel Fuchs
daniel.fuchs at oracle.com
Thu Nov 2 16:47:10 UTC 2017
Hi,
Please find below a patch for:
8189953: FileHandler constructor throws NoSuchFileException
with absolute path
https://bugs.openjdk.java.net/browse/JDK-8189953
webrev:
http://cr.openjdk.java.net/~dfuchs/webrev_8189953/webrev.00/
This is a windows only bug.
The issue is caused by a change that happen somewhen between
8 and 9, where new File(new File("C:"),"Workspace") was fixed
to return "C:Workspace" and not "C:\\Workspace".
This uncovered a bug in the FileHandler::generate algorithm.
The FileHandler::generate algorithm could arguably be improved
by being entirely rewritten but I choose to keep the changes
as minimal as I could.
best regards,
-- daniel
More information about the core-libs-dev
mailing list