Review JDK-8010837 - TEST_BUG: java/io/FileInputStream/LargeFileAvailable.java fails intermittently
Alan.Bateman at oracle.com
Tue Apr 2 08:27:19 UTC 2013
On 30/03/2013 17:56, Dan Xu wrote:
> I see. So we will need clarify the spec and make corresponding
> changes. I think as long as we don't trigger exceptions and just
> return 0 will be backward-compatible, right?
I've created 8011136 to track the issues.
We need to be careful of course and work through the implications. I
think for available() that returning 0 should be okay. The
skip(negative) issue is harder as the long standing behavior is not
unreasonable but it conflicts with the behavior specified by both
InputStream.skip and FileInputStream.skip.
More information about the core-libs-dev