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

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • 10
    • Affects Version/s: None
    • Component/s: 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.

            Assignee:
            Alan Bateman
            Reporter:
            Tim Bell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: