Description
There is a regression in DeployParams.validate() such when --temp points to a non existent directory, a java.nio.file.NoSuchFileException is thrown:
--temp <file path>
Path of a new or empty directory used to ...
the code in validate() now calls:
String [] contents = Files.list(Path.of(root))
.toArray(String[]::new);
with no check if Path.of(root) exists.
This causes Files.list to throw the exception.
--temp <file path>
Path of a new or empty directory used to ...
the code in validate() now calls:
String [] contents = Files.list(Path.of(root))
.toArray(String[]::new);
with no check if Path.of(root) exists.
This causes Files.list to throw the exception.
Attachments
Issue Links
- relates to
-
JDK-8223955 Eliminate or reduce mixing of old File API and new Path/Files APIs
- Resolved