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.
Sub-Component: java.nio. Affected Version: 1.4.1.Alternatively use Heap Buffers instead. The performance is still faster than using direct buffers when all this paging needs to be done. Bug 4411600 is still a problem for this way as well though.