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

Do not call File::deleteOnExit in security tests

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 8
    • Component/s: security-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b17
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Backports

        Description

        File::deleteOnExit (for a temp file in the working directory) is not a good idea;

        1. It's useless in agentvm/savevm mode because the file won't be deleted when the test finishes.

        2. It's not necessary because jtreg will clean up the working directory for you.

        3. If the test fails, maybe you want to keep the file for diagnosis. jtreg can retain it for you.

          Activity

          Show
          weijun Weijun Wang added a comment - BT2:EVALUATION http://hg.openjdk.java.net/jdk8/tl/jdk/rev/022540b11147

            People

            • Assignee:
              weijun Weijun Wang
              Reporter:
              weijun Weijun Wang
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: