In Java 8, java.nio.file.WatchEvent.Modifier did not have any implementation, as its own Javadocs says: This release does not define any standard modifiers.
Java 9 seems to not have provided any either.
But in Java 8 I was still able to use the non-standard com.sun.nio.file.SensitivityWatchEventModifier.HIGH so that my file watcher would be more responsive (without this, it takes several seconds to get a notification, which is unacceptable).
In Java 9, this breaks as this is an internal API.
Is there any way to provide a modifier in Java 9 so that this works without using unsupported APIs? IF not, why the heck they thought it was a good idea to not provide any kind of configuration for this?