> [!NOTE] > OpenJDK bug: [JDK-8364277](https://bugs.openjdk.org/browse/JDK-8364277) Encountering a recursive [NTFS junction](https://en.wikipedia.org/wiki/NTFS_links#Junction_points) results in an infinitive loop / ``java.nio.file.FileSystemException`` <details><summary>Related video that describes the situation pretty accurately</summary> https://github.com/user-attachments/assets/7f57927e-f2f8-4606-8964-69aa7dfa2fba </details>
Activity
AB-xdev commentedon Jul 28, 2025
Reported to openjdk / Java Bug Report. Tracking id: 9078786
PoC: https://github.com/AB-xdev/java-recursive-junctions-poc
JDK issue should be listed in a few days here: https://bugs.openjdk.org/browse/JDK-8316029?jql=project%20%3D%20JDK%20AND%20resolution%20%3D%20Unresolved%20AND%20text%20~%20junction%20ORDER%20BY%20created%20DESC (you get no e-mail like "hey we received your issue" when reporting a issue at https://bugreport.java.com/
(╯°□°)╯︵ ┻━┻)[-]NTFS junction[/-][+]NTFS recursive junction[/+]AB-xdev commentedon Jul 29, 2025
Tracked now via https://bugs.openjdk.org/browse/JDK-8364277
AB-xdev commentedon Aug 11, 2025
It looks like the bug was fixed, however only for Java 26 as far as I can see...
Improve "Windows NTFS junction fix"