News for hackers. Stuff that matters.
Re:java.nio.file.WatchService is subtly broken on Linux by batterseapower on Tuesday December 08, 2015 @12:00PM (#10697636)
Oh hey, it's my blog post.

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). :-/

Re:java.nio.file.WatchService is subtly broken on Linux by jdmichal on Tuesday December 08, 2015 @03:31PM (#10699254)
Thanks for this. I have a project using WatchService right now, and this is extremely helpful to have in mind.
Re:java.nio.file.WatchService is subtly broken on Linux by gravypod on Tuesday December 08, 2015 @10:29AM (#10696887)
Is this the problem that is mentioned within the JavaDoc https://docs.oracle.com/javase/7/docs/api/java/nio/file/Watc...

under "Platform dependencies"

Re:java.nio.file.WatchService is subtly broken on Linux by jdmichal on Tuesday December 08, 2015 @10:42AM (#10696984)
It's not the same issue. In this case, it's a logic error:

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.

Re:java.nio.file.WatchService is subtly broken on Linux by gravypod on Tuesday December 08, 2015 @03:25PM (#10699198)
Well that is definitely odd. I hope this does eventually get fixed.
Re:java.nio.file.WatchService is subtly broken on Linux by flarecoder on Monday December 21, 2015 @07:37AM (#10770793)