Le mar. 15 févr. 2022 à 08:19, Vladimir Sitnikov < sitnikov.vladi...@gmail.com> a écrit :
> >the result string will be corrupted when read > > The javadoc does not guarantee the string will be "corrupted" :-/ > > The "default replacement string" is quite a vague definition, > so there might be an encoding where "default replacement string" > means regular ASCII question mark "?". > Yes, so the string will definitely not be the same, so the current code is working correctly even if the encoding changes, because that will lead to the file being overwritten. > > All in all, String->byte is way easier to reason about. > Agreed. > > WDYT on having something like that in Maven core? > Sure, would you mean raising a JIRA issue on MSHARED ? https://issues.apache.org/jira/projects/MSHARED > > Vladimir > -- ------------------------ Guillaume Nodet