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

Better cleanup for jdk/test/java/util/ServiceLoader/ModulesTest.java

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • 10
    • None
    • core-libs
    • generic
    • generic

      ModulesTest.java creates a directory and files in the system temp directory:

      cat -n jdk/test/java/util/ServiceLoader/ModulesTest.java
        [...]
         240 Path jar = Files.createTempDirectory("lib").resolve("pearscript.jar");

      These files are not cleaned up later.

      The preferred approach would be to create temporary test directories and files under the jtreg property user.dir instead, if it is defined.

            alanb Alan Bateman
            tbell Tim Bell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: