Skip to content

Commit 7e50961

Browse files
authored
Add support for Agrona collections (#10235)
Consider Agrona collections and maps as safe so they can be treated as regular collections and maps and use in expression and captured as well
1 parent 3a70b4c commit 7e50961

File tree

1 file changed

+4
-2
lines changed
  • dd-java-agent/agent-debugger/debugger-bootstrap/src/main/java/datadog/trace/bootstrap/debugger/util

1 file changed

+4
-2
lines changed

dd-java-agent/agent-debugger/debugger-bootstrap/src/main/java/datadog/trace/bootstrap/debugger/util/WellKnownClasses.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,15 +193,17 @@ public class WellKnownClasses {
193193
"java.", // JDK base module
194194
"com.google.protobuf.", // Google ProtoBuf
195195
"com.google.common.collect.", // Google Guava
196-
"it.unimi.dsi.fastutil." // fastutil
196+
"it.unimi.dsi.fastutil.", // fastutil
197+
"org.agrona.collections." // Agrona
197198
);
198199

199200
private static final List<String> SAFE_MAP_PACKAGES =
200201
Arrays.asList(
201202
"java.", // JDK base module
202203
"com.google.protobuf.", // Google ProtoBuf
203204
"com.google.common.collect.", // Google Guava
204-
"it.unimi.dsi.fastutil." // fastutil
205+
"it.unimi.dsi.fastutil.", // fastutil
206+
"org.agrona.collections." // Agrona
205207
);
206208

207209
/**

0 commit comments

Comments
 (0)