RFR: 8255576: (fs) Files.isHidden() throws ArrayIndexOutOfBoundsException (unix) [v3]

Christian Stein cstein at openjdk.java.net
Sat Oct 31 20:06:04 UTC 2020


> This PR fixes a corner case of `Files.isHidden(Path)` where the given path is an empty path: `Path.of("")`.

Christian Stein has updated the pull request incrementally with one additional commit since the last revision:

  Wrapped call in logical assertFalse() check
  
  Asserting that the current directory isn't hidden.

-------------

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/952/files
  - new: https://git.openjdk.java.net/jdk/pull/952/files/5be30e66..c27abeab

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=952&range=02
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=952&range=01-02

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.java.net/jdk/pull/952.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/952/head:pull/952

PR: https://git.openjdk.java.net/jdk/pull/952


More information about the nio-dev mailing list