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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 16
    • 16
    • tools
    • b07
    • generic
    • Verified

      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.

            herrick Andy Herrick (Inactive)
            herrick Andy Herrick (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: