RFR: 8367129: Move input validation checks to Java for java.lang.StringLatin1 intrinsics [v2]
Raffaello Giulietti
rgiulietti at openjdk.org
Fri Feb 13 14:33:54 UTC 2026
On Fri, 13 Feb 2026 14:25:17 GMT, Raffaello Giulietti <rgiulietti at openjdk.org> wrote:
>> Volkan Yazici has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Apply review feedback
>
> src/java.base/share/classes/java/lang/StringUTF16.java line 981:
>
>> 979: }
>> 980:
>> 981: private static int indexOfLatin1Unsafe(byte[] src, int srcCount, byte[] tgt, int tgtCount, int fromIndex) {
>
> Similarly to above, documenting the expectations about the arguments here would help.
Be aware that I didn't review the native code.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/28832#discussion_r2804516345
More information about the core-libs-dev
mailing list