JDK-8295405 : Add cause in a couple of IllegalArgumentException and InvalidParameterException shown by sun/security/pkcs11 tests
  • Type: Bug
  • Component: security-libs
  • Sub-Component: java.security
  • Affected Version: 20
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2022-10-17
  • Updated: 2022-11-25
  • Resolved: 2022-10-28
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 17 JDK 20
17.0.6Fixed 20 b22Fixed
Related Reports
Relates :  
Description
We have a number of failing sun/security/pkcs11 test on RHEL 8.6, see 

https://bugs.openjdk.org/browse/JDK-8295343
8295343 : sun/security/pkcs11 tests fail on Linux RHEL 8.6

The exceptions generated by these tests sometimes miss the cause (causing exception), it would be nice to have this added to get the complete exception backtrace.
Comments
A pull request was submitted for review. URL: https://git.openjdk.org/jdk17u-dev/pull/900 Date: 2022-11-18 13:23:30 +0000
18-11-2022

jdk17 backport request I would like to have the patch in jdk17 as well, because it would enhance exceptions there and this way would be helpful to make some error situations clearer. The patch is low risk and applies cleanly.
18-11-2022

Changeset: d5d34241 Author: Matthias Baesken <mbaesken@openjdk.org> Date: 2022-10-28 07:04:27 +0000 URL: https://git.openjdk.org/jdk/commit/d5d34241e21305379f1858556f225e7645cd294e
28-10-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/10726 Date: 2022-10-17 10:42:18 +0000
17-10-2022