RFR [6883354] File.mkdirs() method doesn't behave well when given /../

Alan Bateman Alan.Bateman at oracle.com
Mon Aug 19 10:43:10 UTC 2013

On 16/08/2013 23:40, Ivan Gerasimov wrote:
> :
> Your and Alan's idea of replacing the io implementation with calls to 
> its nio counterpart seems to me as the best approach.
> So it may be better to defer this fix until this move is done.
I think it should be okay to just change this one method to use 
Files.createDirectories if you feel inclined. The main thing with 
changing all of java.io to use java.nio.file is that there are a number 
of subtle compatibility issues to trash through (Windows in particular 
where java.io has a long of long standing issues/bugs, fixing those bugs 
would result in subtle behavior changes that would need to be 
understood). If you want to go ahead with this then the main thing is 
that there is cover test coverage to catch any issues.


More information about the core-libs-dev mailing list