Strange IO behavior


#1

This is a minor thing for now, but I'm curious as to why it's happening:

I have an app that uses readLine() in a loop. When I stop the process on IDEA (Cmd+F2 on Mac, at least with one of the keybindings :)) the app runs the loop a few times (30-40) before stopping, and readLine() returns null every time.

Why is this? Shouldn’t the app just die? It’s a bit annoying IMHO, because at first I had some code that created a few files after that readLine(), and I ended up with lots of them because of this :slight_smile:


#2

After moving to 1.0-SNAPSHOT (for real this time :D) this works as intended (it just dies when killed, instead of returning null all the time without stopping)