--- 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