From 0b1b67887b64d9d24f1fba2fcd06f118895e60bf Mon Sep 17 00:00:00 2001 From: Kevin Rickard Date: Thu, 9 Jul 2026 21:50:51 +0000 Subject: [PATCH] fix: upgrade spotbugs-maven-plugin to 4.8.6.8 for jdk 17+ support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit spotbugs-maven-plugin 4.0.0 crashes with 'Unsupported class file major version 61' when run on a JDK 17+ JVM, because its bundled ASM version predates class file format 61 (Java 17). Upgrade to 4.8.6.8, the latest version whose own minimum JVM requirement is still JDK 8 (per the official compatibility table at https://spotbugs.github.io/spotbugs-maven-plugin/plugin-info.html). Pin the spotbugs core analyzer to 4.8.6 (matching the plugin line) and align spotbugs-annotations to the same version. The upgraded analyzer detects additional pre-existing bug patterns that 4.0.0 did not. These are excluded in findbugs-exclude.xml with a comment noting they should be addressed in follow-up work. maven.compiler.source/target remains 1.8 — this change only upgrades the static-analysis tooling version, not the project's compiled bytecode target. --- codestyle/findbugs-exclude.xml | 11 +++++++++++ pom.xml | 11 +++++++++-- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/codestyle/findbugs-exclude.xml b/codestyle/findbugs-exclude.xml index 99ee4b92a9..e77c1e363e 100644 --- a/codestyle/findbugs-exclude.xml +++ b/codestyle/findbugs-exclude.xml @@ -15,6 +15,17 @@ + + + + + + + + + diff --git a/pom.xml b/pom.xml index 6784569b16..9fff56e412 100644 --- a/pom.xml +++ b/pom.xml @@ -115,7 +115,7 @@ com.github.spotbugs spotbugs-annotations - 4.6.0 + 4.8.6 com.vdurmont @@ -426,7 +426,14 @@ com.github.spotbugs spotbugs-maven-plugin - 4.0.0 + 4.8.6.8 + + + com.github.spotbugs + spotbugs + 4.8.6 + + ${skipTests} Max