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

Better cleanup for ExternalEditor.java and ExternalEditorTest.java

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: 10
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      langtools/test/jdk/jshell/ExternalEditorTest.java runs
      jdk/src/jdk.internal.ed/share/classes/jdk/internal/editor/external/ExternalEditor.java via @run testng


      ExternalEditor.java creates a temporary directory named extedit*

      cat -n jdk/src/jdk.internal.ed/share/classes/jdk/internal/editor/external/ExternalEditor.java
         [...]
         115 this.dir = Files.createTempDirectory("extedit");
      and writes a file there:
         116 this.tmpfile = Files.createTempFile(dir, null, ".java");

      These files are not cleaned up afterwards.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rfield Robert Field
              Reporter:
              tbell Tim Bell
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: