bugs.java.com
JDK-8242283 - Java Issue Tracker
(For example, "C:\Program Files\java\jdk-11.0.6" does not exceed MAX_PATH) ... I understood Unicode version (*W) functions expand limits for file name length.
(For example, "C:\Program Files\java\jdk-11.0.6" does not exceed MAX_PATH) ... I understood Unicode version (*W) functions expand limits for file name length.
The behaviour can even be "cloaked" by using java.util.regex classes: Matcher.group() etc. which seem to use substring internally for String extraction. This way it's nearly impossible to detect the memory leak. This behaviour is totally independent of OS, Java Version, VM type etc.