6979568: Test failure: test\closed\java\awt\Component\VisibleHwInLwContTest\VisibleHwInLwContTest.html
authoranthony
Thu, 14 Oct 2010 18:59:15 +0400
changeset 6827 ee4403d28487
parent 6826 1fc6a05552f2
child 6828 3999af3d33de
6979568: Test failure: test\closed\java\awt\Component\VisibleHwInLwContTest\VisibleHwInLwContTest.html Summary: Extend iteration to this container in isRecursivelyVisibleUpToHeavyweightContainer() Reviewed-by: art, dcherepanov
jdk/src/share/classes/java/awt/Container.java
--- 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())
         {