java.net.http.HttpClient: invalid exception when bad status line is returned

Dmitry Sivachenko trtrmitya at gmail.com
Wed Jan 23 20:38:40 UTC 2019



> On 23 Jan 2019, at 15:32, Daniel Fuchs <daniel.fuchs at oracle.com> wrote:
> 
> Hi Dmitry,
> 
> Thanks for reporting this.
> 
> Right - the IllegalArgumentException is a bit strange there,
> and an IOException (or subclass of it) wrapping the NumberFormatException would be more appropriate.
> 
> If you have OpenJDK author status and a JBS account then you
> could log a bug at https://bugs.openjdk.java.net/
> otherwise then https://bugs.java.com/bugdatabase/
> would be the place.
> 


Thanks!

I followed second link and filed bug report #9059077

We have more bugs for HttpClient to report, this was the simplest one, I will report them one at a time.



More information about the net-dev mailing list