RFR: 4964430: Missing IllegalStateException exception requirement for javax.crypto.Cipher.doFinal
Sean Mullan
mullan at openjdk.org
Thu Sep 14 13:22:40 UTC 2023
On Wed, 13 Sep 2023 18:08:35 GMT, Ben Perez <duke at openjdk.org> wrote:
> Updated IllegalStateException exception requirements for `update`, `doFinal`, `wrap`, and `unwrap`
src/java.base/share/classes/javax/crypto/Cipher.java line 1855:
> 1853: * @throws IllegalStateException if this {@code Cipher} object is in a
> 1854: * wrong state (e.g., has not been initialized, or is not
> 1855: * in ENCRYPT_MODE or DECRYPT_MODE.)
Nit: I think you should remove the period at the end of these lines
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/15727#discussion_r1325942248
More information about the security-dev
mailing list