[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] fix Window.isDisplayable
From: |
Thomas Fitzsimmons |
Subject: |
[cp-patches] fix Window.isDisplayable |
Date: |
Fri, 09 Sep 2005 17:12:19 -0400 |
Hi,
Window.isDisplayable shouldn't call Component.isDisplayable.
Component.isDisplayable checks if its parents are displayable but that
doesn't matter to a window. A window is displayable if its peer is not
null -- no other test is required. I committed this fix and I will
commit the corresponding Mauve tests shortly.
Tom
2005-09-09 Thomas Fitzsimmons <address@hidden>
* java/awt/Window.java (isDisplayable): Do not call super's
isDisplayable.
Index: java/awt/Window.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/awt/Window.java,v
retrieving revision 1.53
diff -u -r1.53 Window.java
--- java/awt/Window.java 21 Aug 2005 00:28:31 -0000 1.53
+++ java/awt/Window.java 9 Sep 2005 20:12:40 -0000
@@ -348,8 +348,6 @@
public boolean isDisplayable()
{
- if (super.isDisplayable())
- return true;
return peer != null;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cp-patches] fix Window.isDisplayable,
Thomas Fitzsimmons <=