JDK-8283623 : Create an automated regression test for JDK-4525475
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 8,11,17,18,19
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2022-03-24
  • Updated: 2022-08-02
  • Resolved: 2022-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 11 JDK 17 JDK 19 JDK 8
11.0.17-oracleFixed 17.0.5-oracleFixed 19 b17Fixed 8u351Fixed
Related Reports
Relates :  
Description
Write a regression test for JDK-4525475

Issue:
JFileChooser allows modification to the file-system by way of the "New Folder"
button, and the ability to rename file/folder names. There is no method on
JFileChooser which indicates that this type of modification should not be
allowed within the given JFileChooser.

Testing:
1. Tested using Mach5(20 times per platform) in macos,linux and windows and got all pass.
2. Tested in original failed Java version and the fixed version;
Java 1.4.0 -> Test Failed.
$ j2sdk1.4.0/bin/java Bug4525475
LookAndFeel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
Name = Go Up, readOnly = true
Name = New Folder, readOnly = true
Its a Read Only JFileChooser and has a New Folder Button. So Test Failed.
Name = Go Up, readOnly = false
Name = New Folder, readOnly = false
Failed

Java 1.5.0 -> Test Passed.
$ jdk1.5.0/bin/java Bug4525475
LookAndFeel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
Name = Go Up, readOnly = true
Name = Go Up, readOnly = false
Name = New Folder, readOnly = false
Passed

Comments
A pull request was submitted for review. URL: https://git.openjdk.org/jdk11u-dev/pull/1290 Date: 2022-07-31 12:31:55 +0000
01-08-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk17u-dev/pull/612 Date: 2022-07-31 12:29:19 +0000
01-08-2022

Fix request [11u,17u] I backport this for parity with 11.0.17,17.0.5-oracle. No risk, only a test change. Clean backport. Test passes.
31-07-2022

Changeset: 7381868a Author: Manukumar V S <mvs@openjdk.org> Committer: Alexey Ivanov <aivanov@openjdk.org> Date: 2022-04-04 18:58:05 +0000 URL: https://git.openjdk.java.net/jdk/commit/7381868afe316a9c62baa4618c49b68a5c43be01
04-04-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk/pull/7969 Date: 2022-03-26 07:19:28 +0000
26-03-2022