RFR: 8288882: JFileChooser - empty (0 bytes) file is displayed as 1 KB

Harshitha Onkar honkar at openjdk.org
Thu Jun 30 16:33:39 UTC 2022


On Wed, 29 Jun 2022 13:06:21 GMT, Abhishek Kumar <duke at openjdk.org> wrote:

> JFileChooser - empty file size issue fixed. 
> For empty file, now the size 0 bytes.
> Manual Test Case "ZeroFileSizeCheck.java" created.

Changes requested by honkar (Author).

test/jdk/javax/swing/JFileChooser/ZeroFileSizeCheck.java line 74:

> 72:             PassFailJFrame.positionTestFrame(frame,
> 73:                     PassFailJFrame.Position.HORIZONTAL);
> 74:         });

@kumarabhi006 You might have to update `addTestFrame & positonTestFrame` to `addTestWindow & positionTestWindow` due to recent PassFailJFrame changes. Probably pull in the latest code.

-------------

PR: https://git.openjdk.org/jdk/pull/9327



More information about the client-libs-dev mailing list