RFR: 8340329: (fs) Message of NotLinkException thrown by FIles.readSymbolicLink does not include file name (win)

Brian Burkhalter bpb at openjdk.org
Wed Sep 18 15:54:07 UTC 2024


On Wed, 18 Sep 2024 06:17:12 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> src/java.base/windows/classes/sun/nio/fs/WindowsLinkSupport.java line 308:
>> 
>>> 306:                 String filename = null;
>>> 307:                 try {
>>> 308:                     filename = GetFinalPathNameByHandle(handle);
>> 
>> One question is whether the string returned by `GetFinalPathNameByHandle` should be used as is, or converted to some other form.
>
> I think you just need to use the path that is passed to the readLink method, just pass it readLinkImpl.

I agree. What I did was lame.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/21047#discussion_r1765317556


More information about the nio-dev mailing list