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

(fs) Files.newByteChannel opens directories for cases where subsequent reads may fail

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b43
    • Verification:
      Verified

      Backports

        Description


        On Unix/like systems it is currently possible to open a directory for read access but subsequent reads fail. It would be more desirable for the open to fail.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  alanb Alan Bateman
                  Reporter:
                  alanb Alan Bateman
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: