--- a/jdk/src/share/classes/java/awt/Component.java Wed Feb 22 22:09:53 2012 -0800
+++ b/jdk/src/share/classes/java/awt/Component.java Fri Feb 24 13:50:37 2012 +0400
@@ -10070,11 +10070,12 @@
}
Window window = getContainingWindow();
if (window != null) {
- if (!window.hasHeavyweightDescendants() || !window.hasLightweightDescendants()) {
+ if (!window.hasHeavyweightDescendants() || !window.hasLightweightDescendants() || window.isDisposing()) {
if (mixingLog.isLoggable(PlatformLogger.FINE)) {
mixingLog.fine("containing window = " + window +
"; has h/w descendants = " + window.hasHeavyweightDescendants() +
- "; has l/w descendants = " + window.hasLightweightDescendants());
+ "; has l/w descendants = " + window.hasLightweightDescendants() +
+ "; disposing = " + window.isDisposing());
}
return false;
}