RFR: JDK-8273142 : Remove dependancy of TestHttpServer, HttpTransaction, HttpCallback from open/test/jdk/sun/net/www/protocol/http/ tests [v2]
Daniel Fuchs
dfuchs at openjdk.java.net
Thu Sep 30 09:08:32 UTC 2021
On Wed, 29 Sep 2021 19:24:36 GMT, Michael McMahon <michaelm at openjdk.org> wrote:
>> Hi @Michael-Mc-Mahon , In my understanding purpose of this block is to return a file with no contents.(Empty file).
>
> I think it would be simpler to replace lines 101-103 just with `trans.close()`
Strictly speaking to preserve the current behavior - that would be `trans.getResponseBody().close();` isn't it?
-------------
PR: https://git.openjdk.java.net/jdk/pull/5352
More information about the net-dev
mailing list