RFR: 8217364: Custom URLStreamHandler for jrt or file protocol can override default handler
Seán Coffey
sean.coffey at oracle.com
Thu May 2 10:00:59 UTC 2019
Been thinking a bit more about this one.
Given that only initialization code will traverse through the "if
(!isOverrideable(protocol))" check, I think we can add synchronization
to eliminate any timing scenarios where the handlers Hashtable gets
populated via another thread after we make the first handers.get call in
getURLStreamHandler(String protocol)
http://gbr10227.uk.oracle.com/html/ws/jdk-jdk/open/webrev.8217364.02/webrev/
regards,
Sean.
On 30/04/2019 18:19, Seán Coffey wrote:
> Looking to correct an issue that arose during the JDK-8213942 fix.
>
> https://bugs.openjdk.java.net/browse/JDK-8217364
> https://cr.openjdk.java.net/~coffeys/webrev.8217364/webrev/
>
> regards,
> Sean.
>
More information about the net-dev
mailing list