Integrated: 8256461: AbstractFileSystemProvider.getSunPathForSocketCall for empty Path returns '.'
Michael McMahon
michaelm at openjdk.java.net
Wed Nov 18 08:47:04 UTC 2020
On Tue, 17 Nov 2020 13:42:46 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.
This pull request has now been integrated.
Changeset: 6948456d
Author: Michael McMahon <michaelm at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/6948456d
Stats: 60 lines in 5 files changed: 57 ins; 0 del; 3 mod
8256461: AbstractFileSystemProvider.getSunPathForSocketCall for empty Path returns '.'
Reviewed-by: dfuchs, alanb
-------------
PR: https://git.openjdk.java.net/jdk/pull/1258
More information about the nio-dev
mailing list