On Wed, 18 Mar 2026 19:40:50 GMT, Brian Burkhalter <[email protected]> wrote:

> I'm not convinced that the `listRoots` sub-test should not instead simply be 
> removed from the test. On Unix, `listRoots` returns `/` and on Windows the 
> value returned by `GetLogicalDrives`, and neither depends on the path string 
> of the `File` as `listRoots` is static. So all the test is doing on Windows 
> is comparing the result of `GetLogicalDrives` obtained at two different 
> times. In the `ListRoots` test on the other hand, the `java.io` result is 
> compared to the `java.nio.file` result.

It's a static method (not an instance method) so I don't know why it was 
included in this test. I agree it would be simpler to remove it from this test.

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

PR Comment: https://git.openjdk.org/jdk/pull/30282#issuecomment-4085481908

Reply via email to