This is an automated email from the ASF dual-hosted git repository.
garydgregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-bcel.git
The following commit(s) were added to refs/heads/master by this push:
new b5c0e99a Use modern Mockito on Java 11+ (#528)
b5c0e99a is described below
commit b5c0e99aaddcae05d729e9068222a710ffe5547b
Author: Gary Gregory <[email protected]>
AuthorDate: Mon Sep 21 14:36:05 2026 -0400
Use modern Mockito on Java 11+ (#528)
Prepares for the next Commons Lang.
---
pom.xml | 10 ++++++++++
.../apache/bcel/classfile/ConstantPoolModuleToStringTest.java | 7 +++++--
2 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/pom.xml b/pom.xml
index 5ac68e85..0ddbe02b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -525,6 +525,16 @@
<commons.jacoco.complexityRatio>0.58</commons.jacoco.complexityRatio>
</properties>
</profile>
+ <profile>
+ <id>java11-up</id>
+ <!-- Avoid Mockito failures on Java 21 and 25 -->
+ <activation>
+ <jdk>[11,)</jdk>
+ </activation>
+ <properties>
+ <commons.mockito.version>5.23.0</commons.mockito.version>
+ </properties>
+ </profile>
</profiles>
<developers>
<developer>
diff --git
a/src/test/java/org/apache/bcel/classfile/ConstantPoolModuleToStringTest.java
b/src/test/java/org/apache/bcel/classfile/ConstantPoolModuleToStringTest.java
index 64399ec4..519b00c2 100644
---
a/src/test/java/org/apache/bcel/classfile/ConstantPoolModuleToStringTest.java
+++
b/src/test/java/org/apache/bcel/classfile/ConstantPoolModuleToStringTest.java
@@ -397,8 +397,11 @@ class ConstantPoolModuleToStringTest {
"net.bytebuddy",
"com.sun.jna",
"junit",
- // com.azul.* for reproducibility with Azul JDK
- "com.azul.");
+ "com.azul.",
+ "com.github.spotbugs.annotations",
+ "org.hamcrest",
+ "org.objenesis",
+ "org.jspecify");
assertTrue(condition, s);
}