-
Enhancement
-
Resolution: Fixed
-
P3
-
10
-
b21
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8266356 | 11-pool-oracle | Ramesh Gangadhar | P3 | Open | Unresolved |
As per jcov code coverage there are missing cases for hashCode and the gap is commonly found for supported key algorithms in java.
For me, It could be better to have a Test against a serialized copy to address these cases,
Note: It should also cover all possible supported crypto providers too.
Ex:
KeyPair pair = keyGen.generateKeyPair();
PrivateKey privateKey = pair.getPrivate();
....
privateKey.equals(copy(privateKey))
privateKey.hashCode() == copy(privateKey).hashCode()
For me, It could be better to have a Test against a serialized copy to address these cases,
Note: It should also cover all possible supported crypto providers too.
Ex:
KeyPair pair = keyGen.generateKeyPair();
PrivateKey privateKey = pair.getPrivate();
....
privateKey.equals(copy(privateKey))
privateKey.hashCode() == copy(privateKey).hashCode()
- backported by
-
JDK-8266356 Add tests to cover hashCode() method for java supported crypto key types
-
- Open
-