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-boun...@openjdk.java.net> On Behalf Of Hamlin Li
Sent: Montag, 17. September 2018 07:55
To: OpenJDK Network Dev list <net-dev@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