Which one of Linux, macOS, and Windows still don't have a native WatchService implementation?

Alan Bateman Alan.Bateman at oracle.com
Wed Jul 22 07:46:46 UTC 2020


On 22/07/2020 08:20, Behrang Saeedzadeh wrote:
> :
>
>
> Does OpenJDK use a native implementation on any of Linux, macOS, and
> Windows operating systems?
>
>  From memory Java 8 on OS X didn't have a native implementation but things
> might have changed since then.
>
> I was thinking about writing a native implementation for those that don't
> and create a pull request to add it to OpenJDK.
>
There isn't currently a native implementation on macOS so it uses the 
portable "polling" implementation. nio-dev is the place to discuss this. 
Note that it has come up several times, and several people have 
developed implementations that aren't quite right (don't implement the 
spec correctly). It's one of these things that is doable, just needs 
time to work through some of the issues.

-Alan



More information about the discuss mailing list