jdk/src/java.desktop/share/classes/sun/awt/SunToolkit.java
changeset 31447 a5d56b872e3a
parent 30948 0a0972d3b58d
child 31716 6617d14f647d
--- a/jdk/src/java.desktop/share/classes/sun/awt/SunToolkit.java	Mon Jun 22 13:28:57 2015 -0700
+++ b/jdk/src/java.desktop/share/classes/sun/awt/SunToolkit.java	Tue Jun 23 09:54:19 2015 +0300
@@ -291,7 +291,7 @@
     // Maps from non-Component/MenuComponent to AppContext.
     // WeakHashMap<Component,AppContext>
     private static final Map<Object, AppContext> appContextMap =
-        Collections.synchronizedMap(new WeakHashMap<Object, AppContext>());
+        Collections.synchronizedMap(new WeakIdentityHashMap<Object, AppContext>());
 
     /**
      * Sets the appContext field of target. If target is not a Component or