JDK-8299077 : [REDO] JDK-4512626 Non-editable JTextArea provides no visual indication of keyboard focus
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 8,11,17,20,21
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2022-12-20
  • Updated: 2025-02-11
  • Resolved: 2022-12-22
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 20 JDK 21 JDK 8
11.0.27-oracleFixed 17.0.15-oracleFixed 20 b30Fixed 21Fixed 8u451Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Sub Tasks
JDK-8299123 :  
Description
The fix for JDK-4512626 caused test failures* in tier3, tier4 and tier5.
It was backed out.

Thus the fix for JDK-4512626 is to be redone.

There are too many failures to list them all, among them:
javax/swing/text/StyledEditorKit/8016833/bug8016833.java (tier3)
javax/swing/text/html/Test4783068.java (tier4)
Comments
Fix request [17u] I backport this for parity with 17.0.15-oracle. Low risk, awt only. Clean backport. Tests pass, also those mentioned in the description. SAP nighlty testing passed.
04-12-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk17u-dev/pull/3082 Date: 2024-12-02 12:22:22 +0000
02-12-2024

Changeset: fef70d78 Author: Alexander Zuev <kizune@openjdk.org> Date: 2022-12-22 00:12:15 +0000 URL: https://git.openjdk.org/jdk20/commit/fef70d78baec9ce11d50b9a4c1fb26a1b854ccbf
22-12-2022

Fix causes JCK failure
21-12-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk20/pull/68 Date: 2022-12-20 23:38:31 +0000
20-12-2022

Looks like all but JCK test failures are caused by the changed behaviour of the text caret painter - before it started with caret invisible, waited for the blinkRate and then painted caret for the first time. With my changes it starts with caret painted, waits for the blinkRate and then makes it invisible. That affected all the tests that take screenshot of the text component and analyze them pixel by pixel - they do not expect the caret in the image and fail. By removing the extra flasher reset the tests are passing.
20-12-2022

Converting this bug into the [REDO] and changed the priority to match the original bug.
20-12-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk20/pull/61 Date: 2022-12-20 10:54:16 +0000
20-12-2022