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

Better cleanup for jdk/test/java/nio/file/spi/SetDefaultProvider.java

    Details

    • Subcomponent:
    • Resolved In Build:
      b17
    • CPU:
      generic
    • OS:
      generic

      Description

      SetDefaultProvider.java creates directories and files named m.jar or m.properties. These files are not cleaned up later.

        [...]
          94 Path patchdir = Files.createTempDirectory("patch");
        [...]
         108 Path patchdir = Files.createTempDirectory("patch");
        [...]
         145 Path jar = Files.createTempDirectory("tmp").resolve("m.jar");

      The preferred approach would be to create temporary test directories and files under the jtreg property user.dir instead, if it is defined. During a jtreg run, user.dir has the value $PWD/JTwork/scratch

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: