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

Harshitha Onkar honkar at openjdk.org
Thu Jun 30 16:58:44 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.

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

> 1: /*
> 2:  * Copyright (c) 1999, 2022, Oracle and/or its affiliates. All rights reserved.

The copyright year is usually just the current year for new files. 
Was the test case created from a reproducer code?

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

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



More information about the client-libs-dev mailing list