On Mon, 21 Jul 2025 13:00:03 GMT, Chen Liang <li...@openjdk.org> wrote:
> The docs should mention these two details: > > 1. This method does not replace upon malformed data but fails > 2. This method does not copy the byte array for validation (can add to the > warning) @liach, I presume you want more than the following two (existing) comment blocks addressing these concerns: * <b>WARNING: The caller of this method shall relinquish and transfer the * ownership of the byte array to the callee</b>, since the latter will not * make a copy. ... * @throws CharacterCodingException for malformed or unmappable bytes If so, mind elaborating on your suggested enhancements, please? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/26413#discussion_r2269632642