Skip to content

Conversation

nikita-tkachenko-datadog
Copy link
Contributor

@nikita-tkachenko-datadog nikita-tkachenko-datadog commented Sep 3, 2025

What Does This Do

Fixes some of the methods in datadog.trace.agent.tooling.bytebuddy.outline.TypeOutline that stopped working with ByteBuddy 1.17.6 release.

There is a chain of inheritance: TypeOutline -> ... -> WithDelegation -> ... -> ModifierReviewable.AbstractBase.

Some of the methods (isInterface, isAnnotation and others) used to be inherited by TypeOutline from ModifierReviewable.AbstractBase. The abstract base implementations relied on getModifiers() (overridden in TypeOutline).

This ByteBuddy commit overrides these methods in WithDelegation (so now TypeOutline inherits them from that class), and the new implementations delegate to what is returned by delegate().

delegate() method is not implemented in TypeOutline (it throws an exception), so with the introduction of the new methods things broke in TypeOutline.

This PR implements the affected methods in directly in TypeOutline. They rely on getModifiers() as before.

Motivation

Additional Notes

This was uncovered when trying to bump dependencies in the Selenium instrumentation module. Selenium depends on ByteBuddy, so bumping selenium-java from 4.33.0 to 4.34.0 transitively pulled in byte-buddy 1.17.6 instead of the previously used 1.17.5

Contributor Checklist

Jira ticket: [PROJ-IDENT]

Copy link

datadog-official bot commented Sep 3, 2025

🎯 Code Coverage
Patch Coverage: 0.00%
Total Coverage: 59.25% (+1.60%)

View detailed report

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: ca28c79 | Docs | Was this helpful? Give us feedback!

Copy link
Contributor

@AlexeyKuznetsov-DD AlexeyKuznetsov-DD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM to me, but please get approval from real expert in this area.

Copy link
Contributor

@mcculls mcculls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - thanks!

@nikita-tkachenko-datadog nikita-tkachenko-datadog merged commit 35a825a into master Sep 4, 2025
503 checks passed
@nikita-tkachenko-datadog nikita-tkachenko-datadog deleted the nikita-tkachenko/byte-buddy-1.17.6-support branch September 4, 2025 10:04
@github-actions github-actions bot added this to the 1.54.0 milestone Sep 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp: core Tracer core type: bug Bug report and fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants