FileInputStream::setPosition bug


#1

How to reproduce:

Take a file input stream and read it until it is exhausted. Then do setPosition(0) twice, and try to read again. It will fail with actual read size == 0. Problem is that line:

should read:

so that seeking is always performed if a setPosition has changed the read location.

/R


#2

Agh! I deserve a slap on the wrist for that one! Checking in a fix now…


#3