[jdk18] RFR: 8271447: java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters

Markus Grönlund mgronlun at openjdk.java.net
Wed Dec 22 11:58:24 UTC 2021


On Wed, 22 Dec 2021 00:58:44 GMT, Erik Gahlin <egahlin at openjdk.org> wrote:

> Hi,
> 
> On arabic locales, the filename of a repository file may become invalid. 
> 
> Fix is to format the filename using a StringBuilder instead of using String.format("%s_%02d%s", filename, counter, FILE_EXTENSION). A similar problem exists when using 'jfr disassemble <recording-file>', but it is much more unlikely to happen, so it will be fixed separately for JDK 19. 
> 
> Testing: jdk/jdk/jfr
> 
> Thanks 
> Erik

Marked as reviewed by mgronlun (Reviewer).

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

PR: https://git.openjdk.java.net/jdk18/pull/64


More information about the hotspot-jfr-dev mailing list