RFR: 8256461: AbstractFileSystemProvider.getSunPathForSocketCall for empty Path returns '.' [v3]

Alan Bateman alanb at openjdk.java.net
Wed Nov 18 07:36:03 UTC 2020


On Tue, 17 Nov 2020 20:13:19 GMT, Michael McMahon <michaelm at openjdk.org> wrote:

>> Could I get the following change reviewed please? 
>> 
>> The problem results from AbstractFileSystemProvider.getSunPathForSocketCall  returning a path of '.' when given an empty path argument. The socket API needs an empty path byte[] in this situation. It causes a BindException which is actually correct, but the error message is confusing because "." always exists and the error message is saying 'path already exists' when the actual error is that server socket channels cannot be bound to the empty path.
>> 
>> Thanks,
>> Michael.
>
> Michael McMahon has updated the pull request incrementally with one additional commit since the last revision:
> 
>   update Tue evening

Marked as reviewed by alanb (Reviewer).

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

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


More information about the nio-dev mailing list