hg: jdk/sandbox: 8245307: Update ExchangeImpl to use thread safe DateTimeFormatter

chris.hegarty at oracle.com chris.hegarty at oracle.com
Mon Jun 15 16:00:40 UTC 2020


Changeset: 2aa12b19f2f3
Author:    ryadav
Date:      2020-06-15 16:26 +0100
URL:       https://hg.openjdk.java.net/jdk/sandbox/rev/2aa12b19f2f3

8245307: Update ExchangeImpl to use thread safe DateTimeFormatter
Summary: The fix updates sun.net.httpserver.ExchangeImpl to use thread safe DateTimeFormatter for response headers, this replaces DateFormat that was using ThreadLocal.
Reviewed-by: dfuchs, alanb, chegar

! src/jdk.httpserver/share/classes/sun/net/httpserver/ExchangeImpl.java
+ test/jdk/com/sun/net/httpserver/DateFormatterTest.java



More information about the jdk-sandbox-changes mailing list