uschindler commented on code in PR #14627: URL: https://github.com/apache/lucene/pull/14627#discussion_r2079568663
########## lucene/test-framework/src/java/org/apache/lucene/tests/mockfile/WindowsFS.java: ########## @@ -58,7 +58,13 @@ private Object getKey(Path existing) throws IOException { BasicFileAttributeView view = Files.getFileAttributeView(existing, BasicFileAttributeView.class); BasicFileAttributes attributes = view.readAttributes(); - return attributes.fileKey(); + Object key = attributes.fileKey(); + if (key != null) { + return key; + } + // the key may be null, e.g. on real Windows! + // in that case we fallback to the real path + return existing.toRealPath(); Review Comment: OK. I will change to plain path and only use filekey if it is available. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org