8381937: Make exceptions in Java_sun_security_mscapi_CKeyPairGenerator generateCKeyPair more specific#30666
8381937: Make exceptions in Java_sun_security_mscapi_CKeyPairGenerator generateCKeyPair more specific#30666MBaesken wants to merge 1 commit intoopenjdk:masterfrom
Conversation
|
👋 Welcome back mbaesken! A progress list of the required criteria for merging this PR into |
|
@MBaesken This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 1 new commit pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the ➡️ To integrate this PR with the above commit message to the |
TheRealMDoerr
left a comment
There was a problem hiding this comment.
LGTM. Please note that "- [x] I confirm that I make this contribution in accordance with the OpenJDK Interim AI Policy." is not matched.
RealLucy
left a comment
There was a problem hiding this comment.
Looks good.
... and helpful for issue solving.
No idea, maybe a blank too much? Or X instead of x ? |
Currently in some specific Windows environment, I run into this error/exception (test sun/security/mscapi/EncodingMutability.java) :
java.security.ProviderException: java.security.KeyException: error 2, The system cannot find the file specified.
Unfortunately in the native generateCKeyPair method we get only the GetLastError output in the exception text. It would be better to also get a hint about the failing method CryptAcquireContext or CryptGenKey.
For this we could use the existing helper ThrowExceptionWithMessageAndErrcode .
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/30666/head:pull/30666$ git checkout pull/30666Update a local copy of the PR:
$ git checkout pull/30666$ git pull https://git.openjdk.org/jdk.git pull/30666/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 30666View PR using the GUI difftool:
$ git pr show -t 30666Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/30666.diff
Using Webrev
Link to Webrev Comment