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

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

    XMLWordPrintable

Details

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

    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

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

              Dates

                Created:
                Updated:
                Resolved: