Skip to content

Commit 5cf6fc9

Browse files
committed
Improve docblocks of glassfish compatibility layer
1 parent 5f68507 commit 5cf6fc9

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

dd-java-agent/agent-tooling/src/main/java/datadog/trace/agent/tooling/compatibility/GlassfishClassloaderBlacklistCompatibility.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@
1111
import net.bytebuddy.asm.Advice;
1212
import net.bytebuddy.matcher.ElementMatchers;
1313

14+
/**
15+
* This instrumenter prevents a mechanism from GlassFish classloader to produces a class not found
16+
* exception in our tracer. Link to the GH issue:
17+
* https://github.com/eclipse-ee4j/glassfish/issues/22566 If a class loading is attempted, as an
18+
* example, as a resource and is it not found, then it is blacklisted. Successive attempts to load a
19+
* class as a class (not a resource) will fail because the class is not even tried. We hook into the
20+
* blacklisting method to avoid specific namespaces to be blacklisted.
21+
*/
1422
@Slf4j
1523
@AutoService(Instrumenter.class)
1624
public final class GlassfishClassloaderBlacklistCompatibility implements Instrumenter {

0 commit comments

Comments
 (0)