RFR: 8350869: os::stat doesn't follow symlinks on Windows [v6]

duke duke at openjdk.org
Thu May 22 07:50:58 UTC 2025


On Wed, 21 May 2025 14:04:14 GMT, Anton Artemov <duke at openjdk.org> wrote:

>> This PR addresses an issue on Windows, where a class file could not be loaded by a symbolic link. 
>> 
>> I added a check if a wide path is a symbolic link (soft one) and a method for dereferencing. Both os::stat() and os::open() on Windows now can handle such links.
>> 
>> Tested in tiers 1-3. A separate test added.
>
> Anton Artemov has updated the pull request incrementally with one additional commit since the last revision:
> 
>   8350869: Fixed comments. Added skip exception to the test when symlinks are not supported.

@toxaart 
Your change (at version a6ff5001ea00b6b721cb6e65d6ce696dae5d45e4) is now ready to be sponsored by a Committer.

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

PR Comment: https://git.openjdk.org/jdk/pull/25233#issuecomment-2900243914


More information about the hotspot-runtime-dev mailing list