Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8249289

Exception thrown when --temp points to non-existant directory

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 16
    • Fix Version/s: 16
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b07
    • OS:
      generic

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                herrick Andy Herrick
                Reporter:
                herrick Andy Herrick
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: