Withdrawn: 8340087: (fs) Files.copy include symbolic link detailed message for NoSuchFileException

duke duke at openjdk.org
Fri Nov 15 17:02:00 UTC 2024


On Fri, 13 Sep 2024 07:00:24 GMT, xpbob <duke at openjdk.org> wrote:

> (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

This pull request has been closed without being integrated.

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

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


More information about the nio-dev mailing list