RFR: 8356439: Rename JavaLangAccess::*NoRepl methods [v3]

Volkan Yazici vyazici at openjdk.org
Tue Aug 12 12:11:20 UTC 2025


On Mon, 21 Jul 2025 13:00:03 GMT, Chen Liang <liach at 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


More information about the security-dev mailing list