hg: jdk/sandbox: 8237470: HttpResponse.BodySubscriber::ofFile throws UOE with non-default file systems
chris.hegarty at oracle.com
chris.hegarty at oracle.com
Fri May 29 12:15:30 UTC 2020
Changeset: 9b4c86be4c84
Author: jboes
Date: 2020-05-29 12:59 +0100
URL: https://hg.openjdk.java.net/jdk/sandbox/rev/9b4c86be4c84
8237470: HttpResponse.BodySubscriber::ofFile throws UOE with non-default file systems
Summary: Rework non-default file system paths of BodySubscriber::ofFile and BodyHandler::ofFile and fix BodyHandler::ofFileDownload to throw consistently for non-default file system paths
Reviewed-by: dfuchs, chegar
! src/java.net.http/share/classes/java/net/http/HttpResponse.java
! src/java.net.http/share/classes/jdk/internal/net/http/ResponseBodyHandlers.java
! src/java.net.http/share/classes/jdk/internal/net/http/ResponseSubscribers.java
+ test/jdk/java/net/httpclient/PathSubscriber/BodyHandlerOfFileDownloadTest.java
+ test/jdk/java/net/httpclient/PathSubscriber/BodyHandlerOfFileTest.java
+ test/jdk/java/net/httpclient/PathSubscriber/BodySubscriberOfFileTest.java
+ test/jdk/java/net/httpclient/PathSubscriber/ofFile.policy
+ test/jdk/java/net/httpclient/PathSubscriber/ofFileDownload.policy
More information about the jdk-sandbox-changes
mailing list