Skip to content

Commit 3dac0ed

Browse files
committed
Widen check to cover bundled ACCP
1 parent 8c6ec67 commit 3dac0ed

File tree

1 file changed

+3
-2
lines changed
  • dd-java-agent/agent-bootstrap/src/main/java/datadog/trace/bootstrap

1 file changed

+3
-2
lines changed

dd-java-agent/agent-bootstrap/src/main/java/datadog/trace/bootstrap/Agent.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1364,8 +1364,9 @@ private static boolean isIBMSASLInstalled() {
13641364

13651365
private static boolean isACCPInstalled() {
13661366
return ClassLoader.getSystemResource(
1367-
"com/amazon/corretto/crypto/provider/AmazonCorrettoCryptoProvider.class")
1368-
!= null;
1367+
"com/amazon/corretto/crypto/provider/AmazonCorrettoCryptoProvider.class")
1368+
!= null
1369+
|| ClassLoader.getSystemResource("com/apple/bundled/accp/AppleBundledACCP.class") != null;
13691370
}
13701371

13711372
private static boolean isJFRSupported() {

0 commit comments

Comments
 (0)