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

Better cleanup for jdk/test/java/lang/ModuleTests/AnnotationsTest.java

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: 10
    • Component/s: core-libs
    • Labels:

      Description

      AnnotationsTest.java creates a temporary directory for the test but does not clean it up later:


      cat -n jdk/test/java/lang/ModuleTests/AnnotationsTest.java
         [...]
          77 Path dir = Files.createTempDirectory("mods");

      The preferred approach would be to create temporary test 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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: