There is a bug in eclipse that when the file on stdin goes EOF, it switches to the keyboard, so if you type ^Z to the console on a Windows machine when the app hangs at EOF, the app proceeds to normal termination. Testing from the command prompt does not have this defect.