JDK-6273043 : Regression test java/awt/Modal/FocusAndCoverOfModalDialogCanBeShiftedTest fails on Solaris
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: solaris_10
  • CPU: sparc
  • Submitted: 2005-05-19
  • Updated: 2011-01-19
  • Resolved: 2005-07-23
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 b45Fixed
Related Reports
Relates :  
Description
The failure occurs on b38 AWT PIT build

The regression testcase java/awt/Modal/FocusAndCoverOfModalDialogCanBeShiftedTest/FocusAndCoverOfModalDialogCanBeShiftedTest.html fails on Solaris. jtr file attached.
###@###.### 2005-05-19 13:50:05 GMT

Comments
SUGGESTED FIX ------- FocusAndCoverOfModalDialogCanBeShiftedTest.java ------- *** /tmp/sccs.17ayJk Thu Jun 23 19:24:24 2005 --- FocusAndCoverOfModalDialogCanBeShiftedTest.java Tue Jun 7 18:11:06 2005 *************** *** 63,68 **** --- 63,70 ---- } thread1 = new ThreadDialog(dialog1); + // Fixed 6273043: In order to make sure that second dialog covers first dialog + r.delay(1000); thread2 = new ThreadDialog(dialog2); thread1.start(); ###@###.### 2005-06-23 15:36:57 GMT
23-06-2005

EVALUATION Looks like the problem is in the FocusOwner. It is null. I think we should check that FocusOwner is not first Dialog instead of checking that FocusOwner is second Dialog. Additionally we should keep order of Dialogs appearance. ###@###.### 2005-05-20 08:07:53 GMT This is the bug in the regression test. We should make sure that second dialog covers first dialog. So it would be a good idea to add delay at the time of the coming up of the dialogs. ###@###.### 2005-06-07 14:22:51 GMT ###@###.### 2005-06-23 15:36:57 GMT
20-05-2005