Re: RFR: 8235459: HttpRequest.BodyPublishers#ofFile(Path) assumes the default file system

2020-03-06 Thread Julia Boes
Hi Anthony, Thanks for your comments. For distinguishing the non-default filesystem case, an alternative to using the try-catch block is an if-else block with the same check as is done in Path::toFile:     if (path.getFileSystem() == FileSystems.getDefault()) Path::toFile can be overridden s

Re: RFR: 8235459: HttpRequest.BodyPublishers#ofFile(Path) assumes the default file system

2020-03-06 Thread Anthony Vanelverdinghe
Hi Julia On 06/03/2020 14:04, Julia Boes wrote: Hi Anthony, Thanks for your comments. For distinguishing the non-default filesystem case, an alternative to using the try-catch block is an if-else block with the same check as is done in Path::toFile:     if (path.getFileSystem() == FileSystem