RFR 8245307 : Update ExchangeImpl to use thread safe DateTimeFormatter
Alan Bateman
Alan.Bateman at oracle.com
Fri Jun 12 15:57:05 UTC 2020
On 12/06/2020 15:56, Rahul wrote:
>
> Hello,
>
> Request to have my fix reviewed for the issue:
>
> JDK-8245307 : Update ExchangeImpl to use thread safe DateTimeFormatter.
>
> The fix updates sun.net.httpserver.ExchangeImpl to use thread safe
>
> DateTimeFormatter for response headers, this replaces DateFormat
>
> that was using ThreadLocal to be thread safe.
>
> Issue: https://bugs.openjdk.java.net/browse/JDK-8245307
>
> webrev: http://cr.openjdk.java.net/~ryadav/webrev_8245307/index.html
>
>
Thanks for taking this one. Implementation change is fine. The test
seems to be quite good but I have small comments:
1. @modules lists several internal packages that don't seem to be used,
maybe copied from another test?
2. It might be easier for reviewers to move the @AfterTest to after the
@BeforeTest so that the setup/tear-down are close together.
3. Are you re-order the declarations so that the instance fields are
together (the static and instance fields are mixed up so slow to read).
4. Minor nit is that you are missing a space in several "if(" and "try("
usages, maybe an old habit?
-Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/net-dev/attachments/20200612/9cca3633/attachment.htm>
More information about the net-dev
mailing list