8065096: java.net.Authenticator.theAuthenticator should be properly synchronized
Reviewed-by: chegar, lancea
--- a/jdk/src/java.base/share/classes/java/net/Authenticator.java Mon Nov 17 14:50:05 2014 +0300
+++ b/jdk/src/java.base/share/classes/java/net/Authenticator.java Mon Nov 17 15:30:22 2014 +0300
@@ -60,7 +60,7 @@
class Authenticator {
// The system-wide authenticator object. See setDefault().
- private static Authenticator theAuthenticator;
+ private static volatile Authenticator theAuthenticator;
private String requestingHost;
private InetAddress requestingSite;