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

Better cleanup in java/nio/file/Files/probeContentType/ParallelProbes.java

    XMLWordPrintable

Details

    • b17
    • generic
    • generic

    Description

      ParallelProbes.java creates a prefix*.json file in the default temp directory, but does not clean it up later.

      cat -n jdk/test/java/nio/file/Files/probeContentType/ParallelProbes.java
         [...]
          50 final Path p = Files.createTempFile("prefix", ".json");

      A better approach would be to create temporary test files under the jtreg property user.dir instead.

      During a jtreg run, user.dir has the value $PWD/JTwork/scratch

      Attachments

        Issue Links

          Activity

            People

              bpb Brian Burkhalter
              tbell Tim Bell
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: