JDK-8136517 : [macosx]Test java/awt/Focus/8073453/AWTFocusTransitionTest.java fails on MacOSX
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2015-09-15
  • Updated: 2025-04-03
  • Resolved: 2021-04-28
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 11 JDK 17 JDK 8
11.0.13-oracleFixed 17 b20Fixed 8u311Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
Test name(s): java/awt/Focus/8073453/AWTFocusTransitionTest.java
JDK tested:9b80,9b79 
OS tested:MacOSX, Windows 
Is it a regression? No 
Regression introduced in release/build: N/A 
                               
Is it platform specific? Yes ( fails in MacOSX and passes in Windows) 
                      
General Description: 
----------System.err:(14/1136)----------
java.lang.RuntimeException: Test Failed! Incorrect focus owner: null, but expected: java.awt.TextField[textfield0,0,1,300x92,text=,editable,selection=0-0]
	at AWTFocusTransitionTest.checkFocusOwner(AWTFocusTransitionTest.java:107)
	at AWTFocusTransitionTest.main(AWTFocusTransitionTest.java:51)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:519)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
	at java.lang.Thread.run(Thread.java:746)

JavaTest Message: Test threw exception: java.lang.RuntimeException: Test Failed! Incorrect focus owner: null, but expected: java.awt.TextField[textfield0,0,1,300x92,text=,editable,selection=0-0]
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Test Failed! Incorrect focus owner: null, but expected: java.awt.TextField[textfield0,0,1,300x92,text=,editable,selection=0-0]
Comments
Fix request (11u): Request backport of UI test for Oracle parity. Test passes on my Mac. No risk.
05-11-2021

Changeset: 0438cea6 Author: Pankaj Bansal <pbansal@openjdk.org> Date: 2021-04-28 04:48:07 +0000 URL: https://git.openjdk.java.net/jdk/commit/0438cea65b927bcf3d039b290de7fd7c60a06922
28-04-2021

Issue is not observed with JDK 9 version java version "9-internal" Java(TM) SE Runtime Environment (build 9-internal+0-2016-06-03-165214.mahalder.client) Java HotSpot(TM) 64-Bit Server VM (build 9-internal+0-2016-06-03-165214.mahalder.client, mixed mode) Hence closing the issue.
04-06-2016

Machine :stt-mac-12.ru.oracle.com, stt-mac-13.ru.oracle.com User/Pass: gtee/Gt33acct http://scaaa008.us.oracle.com:9502/runs/01111/1111966.ManualSubmit/1111966.ManualSubmit-1/workDir/java/awt/Focus/8073453/AWTFocusTransitionTest.jtr RULE "java/awt/Focus/8073453/AWTFocusTransitionTest.java" Exception java.lang.RuntimeException: Test Failed! Incorrect focus owner: null, but expected: java.awt.TextField[textfield0,0,1,30...,text=,editable,selection=0-0]
15-09-2015