[9] 8149571: [launcher] create a regression test to test symlinks on Windows

Kumar Srinivasan kumar.x.srinivasan at oracle.com
Thu Apr 21 15:12:27 UTC 2016

As Alan says, we can't run this test in an automated fashion,
we have to make this a manual test.


> 21.04.2016 9:12, Alan Bateman пишет:
>> On 20/04/2016 23:58, Oleg G. Barbashov wrote:
>>> Hi,
>>> Please review the simple test of launcher started using a symlink.
>>> issue: https://bugs.openjdk.java.net/browse/JDK-8149571
>>> webrev: http://cr.openjdk.java.net/~ogb/8149571/
>> Creating sym link on Windows requires permissions so I assume this 
>> test just pass when createSymbolicLInk fails (no guarantee that the 
>> test is run with Administrator rights for example).
>> -Alan
> In case of weak privilege level (UAC is on, etc.) it fails with 
> "java.nio.file.FileSystemException: A required privilege is not held 
> by the client" (0x80070522).
> We can re-throw the exception with additional comments about 
> UAC/privileges or create the manual test with appropriate instructions 
> about changing the security policy or disabling UAC.
> -Oleg

More information about the core-libs-dev mailing list