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

Phil Race prr at openjdk.org
Thu Aug 11 19:35:41 UTC 2022


On Thu, 11 Aug 2022 10:02:56 GMT, Abhishek Kumar <duke at openjdk.org> wrote:

>> JFileChooser - empty file size issue fixed. 
>> For empty file, now the size 0 KB.
>> Manual Test Case "FileSizeCheck.java" created.
>
> Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Smaller file sizes display one decimal precision

Changes requested by prr (Reviewer).

src/java.desktop/share/classes/sun/swing/FilePane.java line 1209:

> 1207:                     }
> 1208:                     text = mf.format(objs);
> 1209:                 } else if (len < 100L) {

we can never reach here, can we ? And isn't it obsolete ?

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

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



More information about the client-libs-dev mailing list