RFR of JDK-8210802,temp files left by tests in jdk/java/net/httpclient
Hamlin Li
huaming.li at oracle.com
Mon Sep 17 09:02:27 UTC 2018
Hi Christoph,
Thank you for review.
Normally I prefer to use "finally" too.
But for this case, it's simpler to use deleteOnExit(), and for
TestUtil.java and Driver.java it can not use "finally", because the temp
files will be used outside of methods.
If you insist on "finally" I can modify them except of TestUtil.java and
Driver.java.
Thank you
-Hamlin
On 2018/9/17 4:25 PM, Langer, Christoph wrote:
> Hi Hamlin,
>
> wouldn't it be better/cleaner to move the deletion of files into finally blocks? But I guess one can do it with deleteOnExit() as well...
>
> Best regards
> Christoph
>
>> -----Original Message-----
>> From: net-dev <net-dev-bounces at openjdk.java.net> On Behalf Of Hamlin Li
>> Sent: Montag, 17. September 2018 07:55
>> To: OpenJDK Network Dev list <net-dev at openjdk.java.net>
>> Subject: RFR of JDK-8210802,temp files left by tests in jdk/java/net/httpclient
>>
>> Would you please review the following patch?
>>
>> bug: https://bugs.openjdk.java.net/browse/JDK-8210802
>> webrev: http://cr.openjdk.java.net/~mli/8210802/webrev.00/
>>
>> Thank you
>> -Hamlin
More information about the net-dev
mailing list