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

(file) Re-examine Path.checkAccess

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: