JDK-8282402 : Create a regression test for JDK-4666101
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 8,11,17,18,19
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2022-02-25
  • Updated: 2022-10-29
  • Resolved: 2022-03-03
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 19 JDK 8
11.0.17-oracleFixed 17.0.5-oracleFixed 19 b13Fixed 8u351Fixed
Related Reports
Relates :  
Description
Create a regression test for JDK-4666101 : 1.4.0 REGRESSION: JEditorPane: down arrow occasionally nonfunctional.

DESCRIPTION OF THE ACTUAL PROBLEM :
In a JEditorPane, the down arrow has no effect after you
add text on a line preceding a blank line.

Testing:
As the original issue was reported in JDK 1.4.0 and it was fixed in JDK 1.4.2, I have verified the working of this test in those Java versions and the results are as follows:

Java 1.4.0 -> Test Failed.
$ ./j2sdk1.4.0/bin/java JEditorBugWin
Caret Updated : 3
Test Failed, Down Arrow Key Not Functional, expected caret position is 5, but actual is 4


Java 1.4.2 -> Test Passed.
$ ./j2sdk1.4.2/bin/java JEditorBugWin
Caret Updated : 5
Test Passed, Down Arrow Key Functional


Comments
A pull request was submitted for review. URL: https://git.openjdk.org/jdk11u-dev/pull/1482 Date: 2022-10-26 22:44:53 +0000
26-10-2022

Fix request 11u Clean backport. Low risk, new test. Test pass during manual run.
26-10-2022

Fix request 17u Clean trivial backport, new test, in parity with 17.0.5-oracle Test passes: ``` ============================== Test summary ============================== TEST TOTAL PASS FAIL ERROR jtreg:test/jdk/javax/swing/JEditorPane/4666101/JEditorPaneNavigationTest.java 1 1 0 0 ============================== TEST SUCCESS ```
12-10-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk17u-dev/pull/786 Date: 2022-10-12 17:25:14 +0000
12-10-2022

Changeset: 1581e3fa Author: Manukumar V S <mvs@openjdk.org> Committer: Alexey Ivanov <aivanov@openjdk.org> Date: 2022-03-03 19:30:07 +0000 URL: https://git.openjdk.java.net/jdk/commit/1581e3faa06358f192799b3a89718028c7f6a24b
03-03-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk/pull/7623 Date: 2022-02-25 15:37:10 +0000
25-02-2022