RFR: 8355339: Test java/io/File/GetCanonicalPath.java failed: The specified network name is no longer available
Brian Burkhalter
bpb at openjdk.org
Fri Sep 26 19:50:35 UTC 2025
On Fri, 26 Sep 2025 19:43:43 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
> At line 143 of `canonicalize_md.c`, add `ERROR_NETNAME_DELETED` to the set of error codes that `lastErrorReportable()` deems innocuous. The other changes are opportunistic cleanup of indentation without behavioral effect.
It is inferred from code inspection that the test failure is due to `FindFirstFileW` failing with `ERROR_NETNAME_DELETED`. This does not appear to be an error more serious than `ERROR_NETWORK_UNREACHABLE` or `ERROR_NETWORK_ACCESS_DENIED`, hence ignoring it as well is unlikely to cause problems.
As the failure looks to occur only for list item 7 initialized by the `MethodSource` method `pathProviderWindows` in the `GetCanonicalPath` test, namely `\\\\server\\share\\foo\\bar\\gus`, an alternative would be to remove this path from the test and not make any implementation changes.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/27532#issuecomment-3340240645
More information about the core-libs-dev
mailing list