Hello,

Could you please review the following fix for the bug.

Bug: https://bugs.openjdk.java.net/browse/JDK-8041694
Webrev: http://cr.openjdk.java.net/~alitvinov/8041694/jdk9/webrev.00

The bug consists in the fact that the method "JFileChooser.getSelectedFile()" returns "java.io.File" object which does not contain trailing spaces in the directory name, in spite of the fact that the corresponding directory in the file system has trailing spaces in its name. The fix deletes the code in the method "javax.swing.plaf.basic.BasicFileChooserUI.ApproveSelectionAction.actionPerformed" which deliberately modifies the selected directory string name by removing trailing spaces from it.

All automatic regression tests from open and closed sets located in "javax/swing/JFileChooser" directories were run on MS Windows 7 OS during verification of the fix.

Thank you,
Anton

Reply via email to