RFR: 8360463: Ambiguity in Cipher.getInstance() specification between NoSuchAlgorithmException and NoSuchPaddingException [v8]

Weijun Wang weijun at openjdk.org
Mon Sep 22 18:18:11 UTC 2025


On Mon, 22 Sep 2025 17:42:02 GMT, Valerie Peng <valeriep at openjdk.org> wrote:

>> src/java.base/share/classes/javax/crypto/Cipher.java line 507:
>> 
>>> 505:      *
>>> 506:      * @throws NoSuchAlgorithmException if {@code transformation}
>>> 507:      *         is {@code null}, empty, in an invalid format,
>> 
>> Not related to this change, but do we need an "or" before "in an valid format"?
>
> Sure, will use this. Thanks for the suggestions @wangweij @seanjmullan

Now that we are using semi-colon, do we dare add back the commas?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/26489#discussion_r2369729729


More information about the security-dev mailing list