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

Michael McMahon michaelm at openjdk.java.net
Tue Nov 17 20:13:19 UTC 2020


> 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

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/1258/files
  - new: https://git.openjdk.java.net/jdk/pull/1258/files/30980aca..14169162

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=1258&range=02
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=1258&range=01-02

  Stats: 5 lines in 2 files changed: 0 ins; 1 del; 4 mod
  Patch: https://git.openjdk.java.net/jdk/pull/1258.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/1258/head:pull/1258

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


More information about the nio-dev mailing list