Skip to content

Commit 13eba48

Browse files
authored
byte-buddy 1.17.5 (#8657)
* byte-buddy 1.17.5 * shadow-plugin 8.1.1
1 parent a964c3d commit 13eba48

File tree

8 files changed

+13
-10
lines changed

8 files changed

+13
-10
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ plugins {
2222
id 'pl.allegro.tech.build.axion-release' version '1.14.4'
2323
id 'io.github.gradle-nexus.publish-plugin' version '1.3.0'
2424

25-
id "com.github.johnrengelman.shadow" version "7.1.2" apply false
25+
id "com.github.johnrengelman.shadow" version "8.1.1" apply false
2626
id "me.champeau.jmh" version "0.7.0" apply false
2727
id 'org.gradle.playframework' version '0.13' apply false
2828
id 'info.solidsoft.pitest' version '1.9.11' apply false

buildSrc/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ dependencies {
3030
implementation(gradleApi())
3131
implementation(localGroovy())
3232

33-
implementation("net.bytebuddy", "byte-buddy-gradle-plugin", "1.15.11")
33+
implementation("net.bytebuddy", "byte-buddy-gradle-plugin", "1.17.5")
3434

3535
implementation("org.eclipse.aether", "aether-connector-basic", "1.1.0")
3636
implementation("org.eclipse.aether", "aether-transport-http", "1.1.0")

buildSrc/call-site-instrumentation-plugin/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ dependencies {
3636
implementation("org.ow2.asm", "asm-tree", "9.8")
3737
implementation("com.github.javaparser", "javaparser-symbol-solver-core", "3.24.4")
3838

39-
testImplementation("net.bytebuddy", "byte-buddy", "1.15.11")
39+
testImplementation("net.bytebuddy", "byte-buddy", "1.17.5")
4040
testImplementation("org.spockframework", "spock-core", "2.0-groovy-3.0")
4141
testImplementation("org.objenesis", "objenesis", "3.0.1")
4242
testImplementation("org.codehaus.groovy", "groovy-all", "3.0.17")

buildSrc/src/test/groovy/CallSiteInstrumentationPluginTest.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class CallSiteInstrumentationPluginTest extends Specification {
2727
}
2828
2929
dependencies {
30-
implementation group: 'net.bytebuddy', name: 'byte-buddy', version: '1.15.11'
30+
implementation group: 'net.bytebuddy', name: 'byte-buddy', version: '1.17.5'
3131
implementation group: 'com.google.auto.service', name: 'auto-service-annotations', version: '1.0-rc7'
3232
}
3333
'''

buildSrc/src/test/groovy/InstrumentPluginTest.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class InstrumentPluginTest extends Specification {
2323
}
2424
2525
dependencies {
26-
compileOnly group: 'net.bytebuddy', name: 'byte-buddy', version: '1.15.11' // just to build TestPlugin
26+
compileOnly group: 'net.bytebuddy', name: 'byte-buddy', version: '1.17.5' // just to build TestPlugin
2727
}
2828
2929
apply plugin: 'instrument'

dd-java-agent/agent-tooling/src/main/java/datadog/trace/agent/tooling/iast/IastPostProcessorFactory.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import datadog.trace.api.iast.telemetry.IastMetricCollector;
2222
import datadog.trace.api.iast.telemetry.Verbosity;
2323
import java.util.Collections;
24+
import java.util.List;
2425
import javax.annotation.Nonnull;
2526
import net.bytebuddy.asm.Advice;
2627
import net.bytebuddy.description.annotation.AnnotationDescription;
@@ -64,8 +65,8 @@ public IastPostProcessorFactory(final Verbosity verbosity) {
6465

6566
@Override
6667
public @Nonnull Advice.PostProcessor make(
67-
@Nonnull final MethodDescription.InDefinedShape advice, final boolean exit) {
68-
for (final AnnotationDescription annotation : advice.getDeclaredAnnotations()) {
68+
List<? extends AnnotationDescription> annotations, TypeDescription returnType, boolean exit) {
69+
for (final AnnotationDescription annotation : annotations) {
6970
final TypeDescription typeDescr = annotation.getAnnotationType();
7071
final PackageDescription pkgDescr = typeDescr.getPackage();
7172
if (pkgDescr != null && IAST_ANNOTATIONS_PKG.equals(pkgDescr.getName())) {

dd-java-agent/agent-tooling/src/test/groovy/datadog/trace/agent/tooling/iast/IastPostProcessorFactoryTest.groovy

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ class IastPostProcessorFactoryTest extends DDSpecification {
4040
final method = new MethodDescription.ForLoadedMethod(NonAnnotatedAdvice.getDeclaredMethod('exit'))
4141

4242
when:
43-
final result = IastPostProcessorFactory.INSTANCE.make(method, true)
43+
final result = IastPostProcessorFactory.INSTANCE.make(
44+
method.getDeclaredAnnotations(), method.getReturnType().asErasure(), true)
4445

4546
then:
4647
result == Advice.PostProcessor.NoOp.INSTANCE
@@ -60,7 +61,8 @@ class IastPostProcessorFactoryTest extends DDSpecification {
6061
final context = Mock(Implementation.Context)
6162

6263
when:
63-
final postProcessor = IastPostProcessorFactory.INSTANCE.make(method, true)
64+
final postProcessor = IastPostProcessorFactory.INSTANCE.make(
65+
method.getDeclaredAnnotations(), method.getReturnType().asErasure(), true)
6466

6567
then:
6668
postProcessor != Advice.PostProcessor.NoOp.INSTANCE

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ spock = "2.3-groovy-3.0"
1010
groovy = "3.0.17"
1111
junit5 = "5.9.2"
1212
logback = "1.2.3"
13-
bytebuddy = "1.15.11"
13+
bytebuddy = "1.17.5"
1414
scala = "2.11.12" # Last version to support Java 7 (2.12+ require Java 8+)
1515
scala211 = "2.11.12"
1616
scala212 = "2.12.18"

0 commit comments

Comments
 (0)