RFR: 8253176: Signature.getParameters should specify that it can throw UnsupportedOperationException

Valerie Peng valeriep at openjdk.java.net
Tue Apr 26 17:35:52 UTC 2022


On Tue, 26 Apr 2022 14:51:31 GMT, Weijun Wang <weijun at openjdk.org> wrote:

>> This is to update the method javadoc of java.security.Signature.getParameters() with the missing `@throws UnsupportedOperationException`. In addition, the wording on the returned parameters are updated to match those in Cipher and CipherSpi classes. 
>> 
>> CSR will be filed later.
>> 
>> Thanks,
>> Valerie
>
> src/java.base/share/classes/java/security/Signature.java line 1510:
> 
>> 1508:             try {
>> 1509:                 return cipher.doFinal();
>> 1510:             } catch (IllegalBlockSizeException | BadPaddingException e) {
> 
> Is this a revert of a recent fix from someone else?

Must be. Thanks

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

PR: https://git.openjdk.java.net/jdk/pull/8396



More information about the security-dev mailing list