changeset 6827:ee4403d28487

6979568: Test failure: test\closed\java\awt\Component\VisibleHwInLwContTest\VisibleHwInLwContTest.html Summary: Extend iteration to this container in isRecursivelyVisibleUpToHeavyweightContainer() Reviewed-by: art, dcherepanov
author anthony
date Thu, 14 Oct 2010 18:59:15 +0400
parents 1fc6a05552f2
children 3999af3d33de
files jdk/src/share/classes/java/awt/Container.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/jdk/src/share/classes/java/awt/Container.java	Thu Oct 14 18:24:36 2010 +0400
+++ b/jdk/src/share/classes/java/awt/Container.java	Thu Oct 14 18:59:15 2010 +0400
@@ -4187,7 +4187,7 @@
             return true;
         }
 
-        for (Container cont = getContainer();
+        for (Container cont = this;
                 cont != null && cont.isLightweight();
                 cont = cont.getContainer())
         {