Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8065109 (fs spec) Files.newBufferedWriter doesn't specify SecurityException for DELETE_ON_CLOSE option
  3. JDK-8164427

Release Note: The SecurityException throws clauses of the java.nio.file.Files methods newBufferedWriter() and write() now indicate that the exception might arise from a "delete" permission check

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: P4
    • Resolution: Delivered
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Subcomponent:
    • Verification:
      Verified

      Description

      The sentence
       
      "The `SecurityManager.checkDelete(String)` method is invoked to check delete access if the file is opened with the `DELETE_ON_CLOSE` option."
       
      was appended to the verbiage of the SecurityException throws clause in the specifications of the `newBufferedWriter()` and `write()` methods of java.nio.file.Files.

        Attachments

          Activity

            People

            Assignee:
            bpb Brian Burkhalter
            Reporter:
            rcalnan Roger Calnan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: