java.nio.file.WatchService is subtly broken on Linux
blog.omega-prime.co.uk
blog.omega-prime.co.uk
I reported this to Oracle about 3 months ago (ref JI-9024492) but haven't heard anything since 2015-09-29, when they contacted me asking for some code to reproduce the issue (which I gave to them on the same day). :-/
under "Platform dependencies"
1. Event A is read into a buffer.
2. Event B is read into the same buffer.
3. Event B is processed.
4. Event A is processed.
So, when (4) happens, its buffer from (1) has been clobbered.