JDK-7129732 : [macosx] JCK failure: no focus transfer back to Window owner
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: os_x
  • CPU: x86
  • Submitted: 2012-01-13
  • Updated: 2012-05-17
  • Resolved: 2012-04-04
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
7u4 b11Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
Several JCK test cases fail on Mac for approximately such a reason: after an owned focused window become non-focused, the focus don't go back to the previously focused window, the owner.
I've concocted a small rude snippet reproducing that (attached). The JCK test in question could be started via jck4jdk as

java -jar $SOMEWHERE/JCK-runtime-8/lib/jtjck.jar -jck $SOMEWHERE/JCK-runtime-8 -jdk $JDK_TO_TEST api/java_awt/awt_focus_subsystem/focusable_windows/index.html#FocusableWindow3

(it may be jck7 as well).

Comments
SUGGESTED FIX http://cr.openjdk.java.net/~ant/7129732/webrev.1
01-02-2012

EVALUATION We should programmatically transfer focus to the owner when a focused owned window getting closed.
30-01-2012