JDK-6824788 : HierarchyBoundslistenerTest fails on Windows on Jdk7 build
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Not an Issue
  • OS: windows,windows_xp
  • CPU: x86
  • Submitted: 2009-04-01
  • Updated: 2011-01-19
  • Resolved: 2009-05-07
Related Reports
Duplicate :  
Relates :  
Description
HierarchyBoundslistenerTest fails on Windows on Jdk7 build with the following error:
"Fail: Ancestor resized event occured when Frame moved using API"

I executed the test on Windows Vista and Windows XP with Jdk builds 7b51,7b52
The test passes with 6u10b33, 6u12b04

Steps to reproduce:
1.Run the attached testcase(HierarchyBoundsListenerTest.java)
java -DresultsDir=. HierarchyBoundsListenerTest
2.If the test fails the bug is reproduced.

Comments
EVALUATION This is a bug in the test. The change in AWT behaviour which causes the failure has been introduced by the changes for 6533330 fixed in jdk7 b14. The fix for 6533330 changes WM_SIZING handling and sends corresponding COMPONENT_RESIZE events upon each incremental resizing when the user resizes the top level (if live resizing is enabled). The attached test expects that AWT sends only one COMPONENT_RESIZE event during resizing the top level (when the user done resizing the top level). It's incorrect and the test should be enhanced.
07-05-2009