-
Enhancement
-
Resolution: Fixed
-
P4
-
8, 11, 17, 18, 19
-
b17
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8290315 | 17.0.5-oracle | Dukebot | P4 | Resolved | Fixed | b03 |
JDK-8291673 | 17.0.5 | Goetz Lindenmaier | P4 | Resolved | Fixed | b01 |
JDK-8290338 | 11.0.17-oracle | Dukebot | P4 | Resolved | Fixed | b03 |
JDK-8291679 | 11.0.17 | Goetz Lindenmaier | P4 | Resolved | Fixed | b01 |
JDK-8290358 | 8u351 | Dukebot | P4 | Resolved | Fixed | b03 |
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
- backported by
-
JDK-8290315 Create an automated regression test for JDK-4525475
- Resolved
-
JDK-8290338 Create an automated regression test for JDK-4525475
- Resolved
-
JDK-8290358 Create an automated regression test for JDK-4525475
- Resolved
-
JDK-8291673 Create an automated regression test for JDK-4525475
- Resolved
-
JDK-8291679 Create an automated regression test for JDK-4525475
- Resolved
- relates to
-
JDK-4525475 Cannot prevent file-system modification in JFileChooser
- Resolved
- links to
-
Commit openjdk/jdk11u-dev/b235f51c
-
Commit openjdk/jdk17u-dev/cbfb6549
-
Commit openjdk/jdk/7381868a
-
Review openjdk/jdk11u-dev/1290
-
Review openjdk/jdk17u-dev/612
-
Review openjdk/jdk/7969