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

File.deleteOnExit should make it clear that Runtime.halt does not require deletions to be attempted

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 6u14
    • core-libs
    • x86
    • windows_xp

      When a program registered files/folders by File#deleteOnExit() and then launch Runtime#halt().

      REPRODUCE:

      1) Compile the attached J800003.java and Tester.java
      2) Invoke
          java J800003 3

      RESULT:
       In jdk5u20, only folders02 remains and other files and folders are deleted.
       On the other habd, in jdk6u14, all the created files remain.

            Unassigned Unassigned
            tbaba Tadayuki Baba (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: