RFR: JDK-8274172: Convert JavadocTester to use NIO [v2]

Pavel Rappo prappo at openjdk.java.net
Fri Sep 24 17:07:02 UTC 2021


On Fri, 24 Sep 2021 16:43:28 GMT, Jonathan Gibbons <jjg at openjdk.org> wrote:

>> test/langtools/tools/lib/toolbox/ToolBox.java line 270:
>> 
>>> 268:     public void copyDir(Path fromDir, Path toDir) {
>>> 269:         try {
>>> 270:             Files.createDirectories(toDir);
>> 
>> Do not create this directory manually. It will be created first thing in your visitor.
>> Suggestion:
>
> The suggestion is incorrect.  The call is required to ensure that parent directories of `toDir` are created.   These are __not__ created by the call in the visitor.

You are right. I forgot about parent directories. I saw your change in 47c5acc that creates the parent path. This is good.

-------------

PR: https://git.openjdk.java.net/jdk/pull/5644


More information about the javadoc-dev mailing list