JDK-8307097 : Release Note: `com.sun.nio.file.SensitivityWatchEventModifier` Is Deprecated
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.nio
  • Affected Version: 21
  • Priority: P4
  • Status: Resolved
  • Resolution: Delivered
  • Submitted: 2023-04-28
  • Updated: 2023-07-28
  • Resolved: 2023-05-31
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 21
21Resolved
Description
`com.sun.nio.file.SensitivityWatchEventModifier` has been deprecated and is marked for removal in a future release. The constants in this enum were used with the polling based `WatchService` implementation on macOS to set the interval when polling files for changes. The polling based `WatchService` has been changed to ignore these modifiers when registering files to be watched.