8256461: AbstractFileSystemProvider.getSunPathForSocketCall for empty Path returns '.'

Reviewed-by: dfuchs, alanb
This commit is contained in:
Michael McMahon 2020-11-18 08:43:51 +00:00
parent d30956055b
commit 6948456dbf
5 changed files with 60 additions and 3 deletions

View file

@ -158,6 +158,7 @@ public abstract class AbstractFileSystemProvider extends FileSystemProvider {
/**
* Returns a path name as bytes for a Unix domain socket.
* Different encodings may be used for these names on some platforms.
* If path is empty, then an empty byte[] is returned.
*/
public abstract byte[] getSunPathForSocketFile(Path file);
public abstract byte[] getSunPathForSocketFile(Path path);
}