From c6287f0cb21ef2256b7b5f0566d23acb8ea7e862 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 16 Jan 2026 03:14:21 +0000 Subject: [PATCH 1/4] Bump errorProneVersion from 2.44.0 to 2.46.0 Bumps `errorProneVersion` from 2.44.0 to 2.46.0. Updates `com.google.errorprone:error_prone_annotations` from 2.44.0 to 2.46.0 - [Release notes](https://github.com/google/error-prone/releases) - [Commits](https://github.com/google/error-prone/compare/v2.44.0...v2.46.0) Updates `com.google.errorprone:error_prone_core` from 2.44.0 to 2.46.0 - [Release notes](https://github.com/google/error-prone/releases) - [Commits](https://github.com/google/error-prone/compare/v2.44.0...v2.46.0) --- updated-dependencies: - dependency-name: com.google.errorprone:error_prone_annotations dependency-version: 2.46.0 dependency-type: direct:production update-type: version-update:semver-minor - dependency-name: com.google.errorprone:error_prone_core dependency-version: 2.46.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- dependencyManagement/build.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dependencyManagement/build.gradle.kts b/dependencyManagement/build.gradle.kts index 6718f05e85..e28887f27f 100644 --- a/dependencyManagement/build.gradle.kts +++ b/dependencyManagement/build.gradle.kts @@ -29,7 +29,7 @@ val DEPENDENCY_BOMS = listOf( val autoServiceVersion = "1.1.1" val autoValueVersion = "1.11.1" -val errorProneVersion = "2.44.0" +val errorProneVersion = "2.46.0" val jmhVersion = "1.37" val mockitoVersion = "4.11.0" val slf4jVersion = "2.0.17" From c822bb54215529389f6faab33b818ee8903d43a0 Mon Sep 17 00:00:00 2001 From: xiang17 Date: Fri, 16 Jan 2026 15:11:25 -0800 Subject: [PATCH 2/4] Add -XDaddTypeAnnotationsToSymbol=true for Error Prone 2.45.0+ JDK 21 compatibility https://github.com/microsoft/ApplicationInsights-Java/pull/4584 --- buildSrc/src/main/kotlin/ai.errorprone-conventions.gradle.kts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/buildSrc/src/main/kotlin/ai.errorprone-conventions.gradle.kts b/buildSrc/src/main/kotlin/ai.errorprone-conventions.gradle.kts index 9e4ef11c90..4627593b77 100644 --- a/buildSrc/src/main/kotlin/ai.errorprone-conventions.gradle.kts +++ b/buildSrc/src/main/kotlin/ai.errorprone-conventions.gradle.kts @@ -13,6 +13,10 @@ val disableErrorProne = properties["disableErrorProne"]?.toString()?.toBoolean() tasks { withType().configureEach { with(options) { + // Error Prone 2.45.0+ requires this flag when running on JDK 21 + // See: https://github.com/google/error-prone/releases/tag/v2.45.0 + compilerArgs.add("-XDaddTypeAnnotationsToSymbol=true") + errorprone { if (disableErrorProne) { logger.warn("Errorprone has been disabled. Build may not result in a valid PR build.") From fc08535c31237c6ccdbd1b59f35c9ae40225e91a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 16 Jan 2026 23:13:54 +0000 Subject: [PATCH 3/4] ./gradlew generateLicenseReport --- licenses/more-licenses.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/licenses/more-licenses.md b/licenses/more-licenses.md index 78e36ff002..05f3c91d16 100644 --- a/licenses/more-licenses.md +++ b/licenses/more-licenses.md @@ -1,7 +1,7 @@ # agent ## Dependency License Report -_2026-01-14 22:45:41 UTC_ +_2026-01-16 23:13:48 UTC_ ## Apache License, Version 2.0 **1** **Group:** `com.fasterxml.jackson.core` **Name:** `jackson-annotations` **Version:** `2.20` @@ -32,7 +32,7 @@ _2026-01-14 22:45:41 UTC_ > - **Embedded license files**: [jackson-datatype-jsr310-2.20.1.jar/META-INF/LICENSE](jackson-datatype-jsr310-2.20.1.jar/META-INF/LICENSE) - [jackson-datatype-jsr310-2.20.1.jar/META-INF/NOTICE](jackson-datatype-jsr310-2.20.1.jar/META-INF/NOTICE) -**5** **Group:** `com.google.errorprone` **Name:** `error_prone_annotations` **Version:** `2.44.0` +**5** **Group:** `com.google.errorprone` **Name:** `error_prone_annotations` **Version:** `2.46.0` > - **Manifest Project URL**: [https://errorprone.info/error_prone_annotations](https://errorprone.info/error_prone_annotations) > - **Manifest License**: Apache License, Version 2.0 (Not Packaged) > - **POM License**: Apache License, Version 2.0 - [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0) From e3406c96d1963a3fd8327c313c33914aa8fd8328 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 16 Jan 2026 23:13:57 +0000 Subject: [PATCH 4/4] ./gradlew resolveAndLockAll --write-locks --- agent/agent-gc-monitor/gc-monitor-api/gradle.lockfile | 2 +- agent/agent-gc-monitor/gc-monitor-core/gradle.lockfile | 2 +- agent/agent-tooling/gradle.lockfile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/agent/agent-gc-monitor/gc-monitor-api/gradle.lockfile b/agent/agent-gc-monitor/gc-monitor-api/gradle.lockfile index f7d7bd614f..4cfac5d028 100644 --- a/agent/agent-gc-monitor/gc-monitor-api/gradle.lockfile +++ b/agent/agent-gc-monitor/gc-monitor-api/gradle.lockfile @@ -3,7 +3,7 @@ # This file is expected to be part of source control. com.azure:azure-sdk-bom:1.3.3=runtimeClasspath com.fasterxml.jackson:jackson-bom:2.20.1=runtimeClasspath -com.google.errorprone:error_prone_annotations:2.44.0=runtimeClasspath +com.google.errorprone:error_prone_annotations:2.46.0=runtimeClasspath io.netty:netty-bom:4.2.7.Final=runtimeClasspath io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom-alpha:2.20.0-alpha=runtimeClasspath io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom:2.20.0=runtimeClasspath diff --git a/agent/agent-gc-monitor/gc-monitor-core/gradle.lockfile b/agent/agent-gc-monitor/gc-monitor-core/gradle.lockfile index f7d7bd614f..4cfac5d028 100644 --- a/agent/agent-gc-monitor/gc-monitor-core/gradle.lockfile +++ b/agent/agent-gc-monitor/gc-monitor-core/gradle.lockfile @@ -3,7 +3,7 @@ # This file is expected to be part of source control. com.azure:azure-sdk-bom:1.3.3=runtimeClasspath com.fasterxml.jackson:jackson-bom:2.20.1=runtimeClasspath -com.google.errorprone:error_prone_annotations:2.44.0=runtimeClasspath +com.google.errorprone:error_prone_annotations:2.46.0=runtimeClasspath io.netty:netty-bom:4.2.7.Final=runtimeClasspath io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom-alpha:2.20.0-alpha=runtimeClasspath io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom:2.20.0=runtimeClasspath diff --git a/agent/agent-tooling/gradle.lockfile b/agent/agent-tooling/gradle.lockfile index d7af602fce..6af369126c 100644 --- a/agent/agent-tooling/gradle.lockfile +++ b/agent/agent-tooling/gradle.lockfile @@ -21,7 +21,7 @@ com.fasterxml.jackson.core:jackson-databind:2.20.1=runtimeClasspath com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.20.1=runtimeClasspath com.fasterxml.jackson:jackson-bom:2.20.1=runtimeClasspath com.github.oshi:oshi-core:6.9.1=runtimeClasspath -com.google.errorprone:error_prone_annotations:2.44.0=runtimeClasspath +com.google.errorprone:error_prone_annotations:2.46.0=runtimeClasspath com.microsoft.azure:msal4j-persistence-extension:1.3.0=runtimeClasspath com.microsoft.azure:msal4j:1.23.1=runtimeClasspath commons-codec:commons-codec:1.20.0=runtimeClasspath