RFR: 8303413: (fs) Ignore polling interval sensitivity modifiers in PollingWatchService [v2]

Alan Bateman alanb at openjdk.org
Thu Mar 2 08:35:06 UTC 2023


On Wed, 1 Mar 2023 17:54:35 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

>> Modify `sun.nio.fs.PollingWatchService` to ignore any polling sensitivity modifiers as done by the other `WatchService`s.
>
> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
> 
>   8303413: Reduce SensitivityModifier test to ensuring no exception on register

test/jdk/java/nio/file/WatchService/SensitivityModifier.java line 96:

> 94:             // register the directories (random sensitivity)
> 95:             register(dirs, watcher);
> 96: 

I assume there is a lot more that is no longer needed in this test, e.g most of doTest is not needed, POLL_TIMEOUT_SECONDS can be removed, ...  I suspect the resulting test will be very simple - just test that the temp dir can be registered with each of the sensitivity levels.

-------------

PR: https://git.openjdk.org/jdk/pull/12795


More information about the nio-dev mailing list