8278099: two sun/security/pkcs11/Signature tests failed with AssertionError

Reviewed-by: dcubed
This commit is contained in:
Valerie Peng 2021-12-02 19:28:42 +00:00
parent 4f15be2cd4
commit 669c90e23b

View File

@ -164,7 +164,6 @@ public class CK_MECHANISM {
// CK_MECHANISM(long) constructor and setParameter(CK_RSA_PKCS_PSS_PARAMS)
// methods instead of creating yet another constructor
public void setParameter(CK_RSA_PKCS_PSS_PARAMS params) {
assert(this.mechanism == CKM_RSA_PKCS_PSS);
assert(params != null);
if (this.pParameter != null && this.pParameter.equals(params)) {
return;