lhotari commented on code in PR #20371:
URL: https://github.com/apache/pulsar/pull/20371#discussion_r1202047338
##########
pulsar-common/src/main/java/org/apache/pulsar/common/util/SecurityUtility.java:
##########
@@ -124,7 +124,9 @@ private static Provider loadConscryptProvider() {
conscryptClazz = Class.forName("org.conscrypt.Conscrypt");
conscryptClazz.getMethod("checkAvailability").invoke(null);
} catch (Throwable e) {
- if (e.getCause() instanceof UnsatisfiedLinkError) {
+ if (e instanceof ClassNotFoundException) {
+ log.warn("Conscrypt jar isn't available in the classpath.
Using JDK default security provider.");
Review Comment:
" jar " is not necessary in the error message, just omit that.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]