Details
-
Type:
Bug
-
Status: Resolved
-
Priority:
P4
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 18
-
Component/s: security-libs
-
Subcomponent:
-
Resolved In Build:b14
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8281115 | 17.0.4-oracle | Gauri Patil | P4 | Resolved | Fixed | b01 |
JDK-8282973 | 17.0.4 | Goetz Lindenmaier | P4 | Resolved | Fixed | b01 |
Description
There is a small issue in test/jdk/sun/security/pkcs11/rsa/TestP11KeyFactoryGetRSAKeySpec.java:
the method testKeySpec is expecting a keySpec class as second argument in order to be reusable for multiple test scenarios, but instead of using that argument is hardcoding RSAPrivateKeySpec.class:
private static void testKeySpec(KeyFactory factory, PrivateKey key, Class<? extends KeySpec> specClass) throws Exception {
try {
KeySpec spec = factory.getKeySpec(key, RSAPrivateKeySpec.class);
it should be:
KeySpec spec = factory.getKeySpec(key, specClass);
the method testKeySpec is expecting a keySpec class as second argument in order to be reusable for multiple test scenarios, but instead of using that argument is hardcoding RSAPrivateKeySpec.class:
private static void testKeySpec(KeyFactory factory, PrivateKey key, Class<? extends KeySpec> specClass) throws Exception {
try {
KeySpec spec = factory.getKeySpec(key, RSAPrivateKeySpec.class);
it should be:
KeySpec spec = factory.getKeySpec(key, specClass);
Attachments
Issue Links
- backported by
-
JDK-8281115 [TESTBUG] Case 2 in TestP11KeyFactoryGetRSAKeySpec is skipped
-
- Resolved
-
-
JDK-8282973 [TESTBUG] Case 2 in TestP11KeyFactoryGetRSAKeySpec is skipped
-
- Resolved
-
- links to
-
Commit openjdk/jdk17u-dev/d5e4f031
-
Commit openjdk/jdk/041ae20b
-
Review openjdk/jdk17u-dev/223
-
Review openjdk/jdk/5351
(1 links to)