changeset 2866:f55be3060347

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 8022709a306d
children b183180e8bb7
files src/share/classes/java/awt/Container.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/awt/Container.java	Thu Oct 14 18:24:36 2010 +0400
+++ b/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())
         {