On Wed, 14 Sep 2022 09:42:37 GMT, Jie Fu <ji...@openjdk.org> wrote:

> Hi all,
> 
> runtime/Dictionary/ProtectionDomainCacheTest.java fails on Linux if `/tmp` is 
> a symbolic link directory.
> The root cause is that `JarUtils.createJarFile` [1] will throw 
> `FileAlreadyExistsException` if `parent` is a symbolic directory.
> So it seems better to test the existance of `parent` before creation.
> 
> Testing:
> - tier1~3 on Linux/x64 in progress, seems fine until now
> 
> Thanks.
> Best regards,
> Jie
> 
> 
> [1] 
> https://github.com/openjdk/jdk/blob/master/test/lib/jdk/test/lib/util/JarUtils.java#L72

I see Ioi has approved the change but I don't think we should put this 
workaround into the test library. The issue here is that 
Files.createDirectories should work like mkdir -p when there are sym links in 
the tree. Jai is experimenting with a fix to that.

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

Changes requested by alanb (Reviewer).

PR: https://git.openjdk.org/jdk/pull/10266

Reply via email to