RFR: 8340087: (fs) Files.copy include symbolic link detailed message for NoSuchFileException [v2]

xpbob duke at openjdk.org
Fri Sep 13 08:54:19 UTC 2024


> (fs) Files.copy include symbolic link detailed message for NoSuchFileException
> 
> Description
> Simulation case:
> 
> touch testfile
> ln -s testfile testlink
> mv testfile testfile1
> 
> 
> code:
> 
>     public static void main(String[] args) throws IOException {
>         Files.copy(Paths.get("/data/testfiles/testlink"), Paths.get("/data/testfiles/xx"));
>     }
> 
> 
> Program current information:
> Exception in thread "main" java.nio.file.NoSuchFileException: /data/testfiles/testlink
> 
> 
> Devops check file exists with ll
> 
> After additional information:
> Exception in thread "main" java.nio.file.NoSuchFileException: /data/testfiles/testlink: due to testfile

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

  Reimport package

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/20984/files
  - new: https://git.openjdk.org/jdk/pull/20984/files/0a205908..c19142e1

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=20984&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=20984&range=00-01

  Stats: 14 lines in 1 file changed: 13 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/20984.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/20984/head:pull/20984

PR: https://git.openjdk.org/jdk/pull/20984


More information about the nio-dev mailing list