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

(file) Re-examine Path.checkAccess

    XMLWordPrintable

Details

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

    Description

      The checkAccess method is currently very awkward to use, requiring applications to catch an exception for the case that access is denied, or some other I/O error occurs. Some developers have suggested methods equivalent to File's canXXX methods but they are problematic too because checking access can fail for many reasons.

      In addition to re-examining this method, the spec for the exists/notExists method should be changed to not require the implementation use checkAccess.

      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: