8202076: test/jdk/java/io/File/WinSpecialFiles.java on windows with VS2017
Alan Bateman
Alan.Bateman at oracle.com
Sat May 19 06:20:16 UTC 2018
On 18/05/2018 23:08, Brian Burkhalter wrote:
> :
> Here is another version which incorporates your suggestion:
>
> http://cr.openjdk.java.net/~bpb/8202076/webrev.02/
>
GetFileAttributesEx follows sym links, FindFirstFile does not. You
should be able to quickly check it but I think the patch means that it
will return the size of the link file when it linked to an lock file.
Assuming I have this right, then you'll need to look at the
dwFileAttributes field in the WIN32_FIND_DATAW structure and return 0
when the attribute to indicate a reparse point is set.
BTW: Do you know if anyone has submitted a bug to Microsoft on this?
This issue is really about working around a regression in the runtime
that comes with the VS2017.
-Alan
More information about the core-libs-dev
mailing list