Code review request "6402006: FileInputStream.available() returns negative values when reading a large file"

Mandy Chung mandy.chung at oracle.com
Thu Nov 18 21:43:23 UTC 2010


  6402006 FileInputStream.available() returns negative values when 
reading a large file

Webrev at:
http://cr.openjdk.java.net/~mchung/6402006/webrev.00/

This fixes a bug in the windows implementation of io_util.c that ignores 
the high-order doubleword of the file size in computing  the end of the 
file.  Thus the available() method incorrectly returns only the 
low-order 32-bit for large files.

Thanks
Mandy



More information about the core-libs-dev mailing list