Review JDK-8010837 - TEST_BUG: java/io/FileInputStream/ fails intermittently

Dan Xu dan.xu at
Tue Mar 26 19:29:29 UTC 2013

Hi All,

In the old JVM function, os::available, it could return negative values 
because lseek() allows the file offset to be set beyond the end of a 
file. In the previous change of removing jvm functions, I wasn't aware 
of that and regardnegative values as invalid and return 0, which causes 
this test failed if it handles negative values. This fixaddressedthis 
problem and added a new testcase to ensure the correctbehaviour when 
available() encounters negative values.




More information about the core-libs-dev mailing list