Bug 264663 - java/openjdk17: possible to port WatchService patch from openjdk8 ?
Summary: java/openjdk17: possible to port WatchService patch from openjdk8 ?
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-java (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-14 09:13 UTC by Dennis Noordsij
Modified: 2024-01-30 21:25 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (java)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Noordsij 2022-06-14 09:13:22 UTC
In java/openjdk8 FreeBSD added a custom WatchService implementation based on libinotify.

https://www.freshports.org/commit.php?category=java&port=openjdk8&files=yes&message_id=201812270952.wBR9qrhJ083942@repo.freebsd.org

Since openjdk17 is another LTS release, would it be possible to add this to the FreeBSD openjdk17 port as well?

My use case is sbt (scala builder), while it officially recommends openjdk8 (for now), it works fine with openjdk17 (my app uses some 17 functionality and doesn't care about supporting 8) except for watching for file changes. The default polling is not only slow but also does not work reliably. 

Using openjdk8 sbt file watching works perfectly.