RFR: 8252304: Seed an HttpRequest.Builder from an existing HttpRequest [v3]

Daniel Fuchs daniel.fuchs at oracle.com
Mon Nov 9 18:57:19 UTC 2020


Hi Mark,

On 09/11/2020 18:40, Mark Sheppard wrote:
> a couple of points:
> Should the spec state explicitly that an NPE is thrown if the supplied HttpRequest reference is null?

https://docs.oracle.com/en/java/javase/15/docs/api/java.net.http/java/net/http/package-summary.html

"Unless otherwise stated, null parameter values will cause
  methods of all classes in this package to throw NullPointerException."

best regards,

-- daniel


More information about the net-dev mailing list