changeset 27728:cbde148d040c

8065096: java.net.Authenticator.theAuthenticator should be properly synchronized Reviewed-by: chegar, lancea
author shade
date Mon, 17 Nov 2014 15:30:22 +0300
parents ac74c0c65910
children d6a975391991 d5c53b177f54
files jdk/src/java.base/share/classes/java/net/Authenticator.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;