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

Alexey Ivanov aivanov at openjdk.org
Thu Jul 7 20:13:40 UTC 2022


On Wed, 6 Jul 2022 12:30:07 GMT, Abhishek Kumar <duke at openjdk.org> wrote:

> In Windows, it uses ShellFolder to set FileSize column values and it is returned in terms of bytes in stead of KB (as shown by native tools).

This doesn't seem to be true for Windows, I see "0 KB" and "1 KB" for zero-byte and one-byte sized files correspondingly in Windows Explorer.

> To handle filesize in windows, I will like to raise separate PR.

Are you saying you will submit a new bug to address the above?

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

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



More information about the client-libs-dev mailing list