JDK-8214469 : [macos] PIT: java/awt/Choice/ChoiceKeyEventReaction/ChoiceKeyEventReaction.java fails
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 12,13,14
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • CPU: unknown
  • Submitted: 2018-11-29
  • Updated: 2023-08-07
  • Resolved: 2019-06-19
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 13 JDK 14 JDK 8
11.0.13-oracleFixed 13.0.4Fixed 14 b08Fixed 8u401Fixed
Related Reports
Duplicate :  
Relates :  
Description
During PIT testing it is seen that the above test fails with this log
----------System.out:(3/297)*----------
Current toolkit is :sun.lwawt.macosx.LWCToolkit
java.awt.event.KeyEvent[KEY_PRESSED,keyCode=38,keyText=\u2191,keyChar=Undefined keyChar,keyLocation=KEY_LOCATION_STANDARD,rawCode=0,primaryLevelUnicode=0,scancode=0,extendedKeyCode=0x26] on textfield0
keyTypedOnTextField = true: itemChanged = false
----------System.err:(13/1147)----------
java.lang.RuntimeException: Test failed. Exception thrown: java.lang.RuntimeException: Test failed. (XToolkit/MToolkit). KeyEvent was addressed to TextField.
	at ChoiceKeyEventReaction.main(ChoiceKeyEventReaction.java:67)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:567)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
	at java.base/java.lang.Thread.run(Thread.java:835)

JavaTest Message: Test threw exception: java.lang.RuntimeException: Test failed. Exception thrown: java.lang.RuntimeException: Test failed. (XToolkit/MToolkit). KeyEvent was addressed to TextField.
JavaTest Message: shutting down test


Seems to be a regression of JDK-6849922
Comments
Fix request [11u] I downport this for parity with 11.0.13-oracle. No risk, only a test change. Test pass.
22-09-2021

Git URL: https://github.com/openjdk/jdk/commit/c2824531a774fddd7fc57d445f9ff9401bd1d78a
21-09-2021

Fix request (13u) Requesting backport to 13u, applies cleanly. Improves test stability, the test passes with the fix.
04-06-2020

URL: https://hg.openjdk.java.net/jdk/jdk/rev/fe5395d16475 User: psadhukhan Date: 2019-07-25 06:51:25 +0000
25-07-2019

URL: http://hg.openjdk.java.net/jdk/client/rev/fe5395d16475 User: serb Date: 2019-06-19 22:34:32 +0000
19-06-2019