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-parent.git
The following commit(s) were added to refs/heads/master by this push:
new f30b440 Add Maven profile `ava28-tests` to temporarily allow
Mockito/Objenesis to construct test doubles on JDK 28 and later
f30b440 is described below
commit f30b440dccadcddc4e9f36c01443e876644f7ffa
Author: Gary Gregory <[email protected]>
AuthorDate: Mon Nov 16 10:05:49 2026 -0500
Add Maven profile `ava28-tests` to temporarily allow Mockito/Objenesis
to construct test doubles on JDK 28 and later
---
pom.xml | 25 +++++++++++++++++++++++++
src/changes/changes.xml | 1 +
2 files changed, 26 insertions(+)
diff --git a/pom.xml b/pom.xml
index ffbad16..3535efd 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1852,5 +1852,30 @@
</plugins>
</build>
</profile>
+ <profile>
+ <id>java28-tests</id>
+ <activation>
+ <jdk>[28,)</jdk>
+ </activation>
+ <build>
+ <plugins>
+ <!-- Temporarily allow Mockito/Objenesis to construct test doubles
on JDK 28 and later. -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <argLine>@{argLine}
-Djdk.reflect.allowNonSerializableConstruction=true</argLine>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-failsafe-plugin</artifactId>
+ <configuration>
+ <argLine>@{argLine}
-Djdk.reflect.allowNonSerializableConstruction=true</argLine>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
</profiles>
</project>
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index ec286fe..cab9e45 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -60,6 +60,7 @@ The <action> type attribute can be add,update,fix,remove.
<release version="108" date="YYYY-MM-DD" description="This is a feature
and maintenance release. Java 8 or later is required.">
<!-- FIX -->
<!-- ADD -->
+ <action type="add" dev="ggregory" due-to="Gary Gregory">Add Maven
profile `ava28-tests` to temporarily allow Mockito/Objenesis to construct test
doubles on JDK 28 and later.</action>
<!-- UPDATE -->
<action type="update" dev="ggregory" due-to="Gary Gregory">Bump
com.puppycrawl.tools:checkstyle from 14.3.0 to 14.4.0 on Java 21 and
up.</action>
<action type="update" dev="ggregory" due-to="Gary Gregory">Bump
commons.pmd-impl.version from 7.28.0 to 7.29.0.</action>