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

(fs spec) DELETE_ON_CLOSE option does not specify that security manager's checkDelete is called

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3
    • 7
    • 7
    • core-libs
    • generic
    • generic

    Description

      The newOutputStream and newByteChannel methods allow the DELETE_ON_CLOSE option to be specified so that the file is deleted when closed. The description of the SecurityException doesn't specify specify that the security manager's checkDelete method is invoked when opening a file with this option (although the implementation does check this permission). The spec should be fixed.

      Attachments

        Issue Links

          Activity

            People

              alanb Alan Bateman
              alanb Alan Bateman
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: