[fix][tls] remove throw exception in getProvider#15414
[fix][tls] remove throw exception in getProvider#15414nodece wants to merge 1 commit intoapache:masterfrom
Conversation
Signed-off-by: Zixuan Liu <nodeces@gmail.com>
|
I think: this patch is to solve the boot failure. If return null, this public constant also will be null, I see this static constant is not used, can we deleted it ? If we deleted the static constant, so we don't have to change this part: |
|
@poorbarcode We cannot delete these, it is used to load the Bouncy Castle provider. |
Received, thank you. |
mattisonchao
left a comment
There was a problem hiding this comment.
LGTM, left a trivial comment.
| log.warn("Not able to get Bouncy Castle provider for both FIPS and Non-FIPS from class path:", e); | ||
| throw new RuntimeException(e); | ||
| } | ||
| return null; |
There was a problem hiding this comment.
Optional will be better than null.
There was a problem hiding this comment.
We don't use this TLS provider, the purpose of this is to add a BC provider to the JDK.
|
The pr had no activity for 30 days, mark with Stale label. |
Signed-off-by: Zixuan Liu nodeces@gmail.com
Motivation
When cannot find the BouncyCastleFipsProvider or BouncyCastleProvider, we shouldn't throw any exception, it is unnecessary.
Modifications
Documentation
Need to update docs?
no-need-doc