This is an automated email from the ASF dual-hosted git repository.

apupier pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 6820f1f88eb6c95de1760ead87dbcbcc596f8212
Author: AurĂ©lien Pupier <[email protected]>
AuthorDate: Mon Jun 29 14:07:06 2026 +0200

    Provide requirements for jvm parameter for Apache Fory and JDK 25+
    
    see https://github.com/apache/fory/issues/3788
    
    Signed-off-by: AurĂ©lien Pupier <[email protected]>
---
 components/camel-fory/pom.xml                         |  1 +
 .../camel-fory/src/main/docs/fory-dataformat.adoc     |  3 +++
 .../ROOT/pages/camel-4x-upgrade-guide-4_22.adoc       | 19 +++++++++++++++++++
 3 files changed, 23 insertions(+)

diff --git a/components/camel-fory/pom.xml b/components/camel-fory/pom.xml
index f869e692d42e..98598ce5fc1c 100644
--- a/components/camel-fory/pom.xml
+++ b/components/camel-fory/pom.xml
@@ -33,6 +33,7 @@
 
     <properties>
         <skipTests.s390x>true</skipTests.s390x>
+        <camel.surefire.fork.vmargs>--add-opens 
java.base/java.lang.invoke=ALL-UNNAMED</camel.surefire.fork.vmargs>
     </properties>
 
     <dependencies>
diff --git a/components/camel-fory/src/main/docs/fory-dataformat.adoc 
b/components/camel-fory/src/main/docs/fory-dataformat.adoc
index 4783ba03ea23..0ae8895eb984 100644
--- a/components/camel-fory/src/main/docs/fory-dataformat.adoc
+++ b/components/camel-fory/src/main/docs/fory-dataformat.adoc
@@ -15,6 +15,9 @@ https://fory.apache.org/[Fory Library]
 [NOTE]
 Apache Fory is not supporting architecture using Big Endian (s390x, for 
instance).
 
+[NOTE]
+With JDK 25+, the JVM parameter `--add-opens 
java.base/java.lang.invoke=ALL-UNNAMED` must be provided to be able to use this 
dataformat.
+
 == Fory Options
 
 
diff --git 
a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_22.adoc 
b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_22.adoc
new file mode 100644
index 000000000000..4704d07950c3
--- /dev/null
+++ b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_22.adoc
@@ -0,0 +1,19 @@
+= Apache Camel 4.x Upgrade Guide
+
+This document is for helping you upgrade your Apache Camel application
+from Camel 4.x to 4.y. For example, if you are upgrading Camel 4.0 to 4.2, 
then you should follow the guides
+from both 4.0 to 4.1 and 4.1 to 4.2.
+
+[NOTE]
+====
+https://github.com/apache/camel-upgrade-recipes/[The Camel Upgrade Recipes 
project] provides automated assistance for some common migration tasks.
+Note that manual migration is still required.
+See the xref:camel-upgrade-recipes-tool.adoc[documentation] page for details.
+====
+
+== Upgrading Camel 4.21 to 4.22
+
+=== camel-fory with JDK 25+ - Breaking change
+
+Due to new requirements from Apache Fory, when using Apache Fory Dataformat, 
the JVM parameter `--add-opens java.base/java.lang.invoke=ALL-UNNAMED` must be 
provided.
+

Reply via email to