8202076: test/jdk/java/io/File/WinSpecialFiles.java on windows with VS2017

Brian Burkhalter brian.burkhalter at oracle.com
Mon May 21 14:52:25 UTC 2018


On May 18, 2018, at 11:20 PM, Alan Bateman <Alan.Bateman at oracle.com> wrote:

> 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.

Thanks for the detail. I will follow it up.

> 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.

I do not know but can investigate. I’ve submitted bugs to Apple before but not to MS.

Brian


More information about the core-libs-dev mailing list