RFR: 8256461: AbstractFileSystemProvider.getSunPathForSocketCall for empty Path returns '.' [v2]
Daniel Fuchs
dfuchs at openjdk.java.net
Tue Nov 17 17:34:03 UTC 2020
On Tue, 17 Nov 2020 15:52:20 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 after Alan and Daniel's comments Tues 17th
Marked as reviewed by dfuchs (Reviewer).
-------------
PR: https://git.openjdk.java.net/jdk/pull/1258
More information about the nio-dev
mailing list