RFR: 8278263: Remove redundant synchronized from URLStreamHandler.openConnection methods
Florent Guillaume
duke at openjdk.java.net
Tue Jan 25 21:04:30 UTC 2022
On Fri, 12 Nov 2021 19:35:10 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:
> All this Handler's are stateless and there is nothing to protect via synchronization.
In theory a subclass overloading using a non-synchronized `openConnection(URL u, Proxy p)` could have relied on `openConnection(URL u)` delegating to it and having been synchronized. So maybe this requires a small CSR?
-------------
PR: https://git.openjdk.java.net/jdk/pull/6373
More information about the net-dev
mailing list