You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ensure net.bytebuddy.raw is set to true when ConfigTransformSpockExtension is installed (#8728)
This matches the same setting used by AgentInstaller which avoids spurious test failures
in agent-tooling, specifically TypeFactoryForkedTest. This requires raw-types enabled to
match the behaviour when installing the tracer with -javaagent. Without this byte-buddy
will use dufferent code paths involving generic checks, which can lead to test failures
using recent versions of byte-buddy (specifically going between full and outline types,
where outlines are always raw-types by their nature.)
These failures would not happen when using -javaagent because AgentInstaller forces the
use of the raw-types setting. ConfigTransformSpockExtension should therefore do the same.
Note we can't set this property in TypeFactoryForkedTest because by then it is too late,
byte-buddy is already confgured by ConfigTransformSpockExtension and the raw-types value
cannot be changed.
8000
Copy file name to clipboardExpand all lines: dd-java-agent/agent-tooling/src/test/groovy/datadog/trace/agent/tooling/bytebuddy/outline/TypeFactoryForkedTest.groovy
0 commit comments