8065096: java.net.Authenticator.theAuthenticator should be properly synchronized

Reviewed-by: chegar, lancea
This commit is contained in:
Aleksey Shipilev 2014-11-17 15:30:22 +03:00
parent ee4d018bad
commit e1f99ed979

View File

@ -60,7 +60,7 @@ public abstract
class Authenticator {
// The system-wide authenticator object. See setDefault().
private static Authenticator theAuthenticator;
private static volatile Authenticator theAuthenticator;
private String requestingHost;
private InetAddress requestingSite;