JDK-6609607 : test/closed/java/awt/Focus/AppletInitialFocusTest[1] should be rewritten
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2007-09-26
  • Updated: 2011-05-17
  • Resolved: 2011-05-17
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 7
7 b27Fixed
Related Reports
Relates :  
Description
The regression test:

  test/closed/java/awt/Focus/AppletInitialFocusTest/AppletInitialFocusTest.java

relies on 1000 ms delay that leads to casual failures.
Another similar test: 

  test/closed/java/awt/Focus/AppletInitialFocusTest1/AppletInitialFocusTest1.java

uses 10000 ms delay that is not reasonably too long.

Both these tests should be rewritten with help of test.java.awt.regtesthelpers package.

Comments
SUGGESTED FIX The webrev is attached.
27-03-2008

EVALUATION Indeed.
26-09-2007