JDK-6323293 : REGRESSION: api/java_awt/Event/FrmEventTests.html#FrmEventTest0008[FrmEventTest0008] failed
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic,solaris_8
  • CPU: generic,x86
  • Submitted: 2005-09-13
  • Updated: 2012-03-22
  • Resolved: 2005-11-12
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6 b61Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
api/java_awt/Event/FrmEventTests.html#FrmEventTest0008[FrmEventTest0008] fails:
componentMoved event was not delivered when frame was moved.

It is not clear if setLocation method doesnt move invisible component or event is not generated. It seems if frame visibility set to true event is generated.

JCK: b06
FAIL jre6.0 b51
FAIL on Linux SuSE 9.3, Solaris 10, JDS-Firefox

PASSED jre6.0 b50
PASS on Windows XP, Windows 2000
Reproduce code Main.java added to attachments.
Same kind of problems occured with following tests:

api/java_awt/Event/DlgEventTests.html#DlgEventTest0008[DlgEventTest0008]: componentMoved event was not delivered when dialog was moved.
api/java_awt/Event/FrmEventTests.html#FrmEventTest0008[FrmEventTest0007]: componentResized event was not delivered when frame was resized.

on SLES9 (Linux stt-06 2.6.5-7.179-default #1 Wed May 25 11:32:40 UTC 2005 i686 i686 i386 GNU/Linux)
JRE 6.0 b52
Following JCK6 tests fail on JCK6 B10 and Java SE6 B55 build:
api/java_awt/Event/WinEventTests.html#WinEventTest0008[WinEventTest0008]
Solaris 9 Sparc JCK-runtime multiJVM 32bit client printer Xint mode in openwin desktop
Solaris 9 Sparc JCK-runtime singleJVM 32bit server Xint mode in cde desktop

api/java_awt/Event/WinEventTests.html#WinEventTest0008[WinEventTest0007]
Solaris 9 Sparc JCK-runtime Plugin 32bit client sound printer Xint mode Mozilla browser gnome desktop

Comments
EVALUATION The test doing frame.pack(); frame.setLocation(newX, newY) and is expecting to receive ComponentMoved event without doing frame.setVisible(true). On windows this scenario passes but not on linux/solaris. I'm contacting the author of the test to clarify on which statement this test is based.
04-10-2005

EVALUATION I haven't found any note in the spec describing that if ComponentEvent should come to the handler if the component is not actually visible. Anyone may point on that one?
03-10-2005

EVALUATION It's a regression introduced in b51 with the fix for 5025858. Run simplified test in Comments on XAWT (or MAWT) and on Win32. You would see that ComponentMoved event is never generated for Frame f on linux. This is due to change in Component and XDecoratedPeer: we intentionally supress duplicate events.
03-10-2005