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

Abhishek Kumar duke at openjdk.org
Wed Jul 6 12:23:48 UTC 2022


On Wed, 29 Jun 2022 19:11:34 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

>> Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Byte entry added to basic.properties, MessageFormat used to format file length
>
> test/jdk/javax/swing/JFileChooser/ZeroFileSizeCheck.java line 56:
> 
>> 54:             JFileChooser fc = new JFileChooser();
>> 55:             try {
>> 56:                 Path currentDir = Paths.get(System.getProperty("java.io.tmpdir"));
> 
> Why not create it in the `test.src` value? This property is defined by jtreg. If the property is not set, default to `.`, that is the current directory.

Creating the empty file in "test.src" now.

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

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



More information about the client-libs-dev mailing list