[Bug 290447] [Feature Request] OpenJDK: kqueue implementation of WatchService
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 25 Oct 2025 11:17:57 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=290447
Ronald Klop <ronald@FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ronald@FreeBSD.org
--- Comment #4 from Ronald Klop <ronald@FreeBSD.org> ---
(In reply to Mark Linimon from comment #3)
It is about an implementation of an interface in the OpenJDK port.
https://docs.oracle.com/javase/8/docs/api/index.html?java/nio/file/WatchService.html
You can retrieve this by calling:
https://docs.oracle.com/javase/8/docs/api/java/nio/file/FileSystem.html#newWatchService--
There is also a comment about this feature wish in the source code:
https://github.com/freebsd/openjdk/blob/53641783b3cb7a6c0347ad7d595a8d12f2347986/src/java.base/bsd/classes/sun/nio/fs/BsdFileSystem.java#L47
I think the issue is best assigned to java@.
NB: Now that FreeBSD 15 has an inotify API, maybe the Linux implementation can
be considered as quick fix. Of course this is pure speculation from my side and
the details might be more complicated.
https://github.com/freebsd/openjdk/blob/53641783b3cb7a6c0347ad7d595a8d12f2347986/src/java.base/linux/classes/sun/nio/fs/LinuxWatchService.java#L37
--
You are receiving this mail because:
You are on the CC list for the bug.