RFR: 8353197: Document preconditions for JavaLangAccess methods [v2]

Volkan Yazici vyazici at openjdk.org
Wed May 7 07:29:55 UTC 2025


On Wed, 7 May 2025 07:26:56 GMT, Volkan Yazici <vyazici at openjdk.org> wrote:

>> Document preconditions on certain `JavaLangAccess` methods that use operations either unsafe and/or without range checks.
>
> Volkan Yazici has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Fix typo in pre-existing JavaDoc

src/java.base/share/classes/jdk/internal/access/JavaLangAccess.java line 314:

> 312:      * <p>
> 313:      * <b>WARNING: The caller of this method shall relinquish and transfer the
> 314:      * ownership of the byte array to the callee</b>, since the later will not

Suggestion:

     * ownership of the byte array to the callee</b>, since the latter will not

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

PR Review Comment: https://git.openjdk.org/jdk/pull/24982#discussion_r2076979439


More information about the security-dev mailing list