This is an automated email from the ASF dual-hosted git repository.
snuyanzin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/master by this push:
new 810f0810478 [FLINK-39806][build] Add jdk25 required flags
810f0810478 is described below
commit 810f0810478089616de4d4085f202f61f247e843
Author: Sergey Nuyanzin <[email protected]>
AuthorDate: Sat May 30 20:59:46 2026 +0200
[FLINK-39806][build] Add jdk25 required flags
---
flink-dist/src/main/resources/config.yaml | 2 +-
flink-python/pom.xml | 6 +++++-
flink-python/pyflink/pyflink_gateway_server.py | 3 +++
flink-runtime/pom.xml | 5 ++++-
flink-tests/pom.xml | 5 ++++-
5 files changed, 17 insertions(+), 4 deletions(-)
diff --git a/flink-dist/src/main/resources/config.yaml
b/flink-dist/src/main/resources/config.yaml
index 98ce2fddb93..3e54e906927 100644
--- a/flink-dist/src/main/resources/config.yaml
+++ b/flink-dist/src/main/resources/config.yaml
@@ -21,7 +21,7 @@
env:
java:
opts:
- all: --add-exports=java.rmi/sun.rmi.registry=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
--add-exports=java.security.jgss/sun.security.krb5=ALL-UNNAMED
--add-opens=java.base/java.lang=ALL-UNNAMED - [...]
+ all: --add-exports=java.rmi/sun.rmi.registry=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
--add-exports=java.security.jgss/sun.security.krb5=ALL-UNNAMED
--add-opens=java.base/java.lang=ALL-UNNAMED - [...]
# # log4j 2 configuration
# log:
# level: TRACE
diff --git a/flink-python/pom.xml b/flink-python/pom.xml
index 2a95ee00138..0f5e5aa07a0 100644
--- a/flink-python/pom.xml
+++ b/flink-python/pom.xml
@@ -42,7 +42,11 @@ under the License.
Kryo AtomicBoolean
-->--add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED <!--
Arrow MemoryUtil
- -->--add-opens=java.base/java.nio=ALL-UNNAMED
+ -->--add-opens=java.base/java.nio=ALL-UNNAMED <!--
+ ArrowReaderWriterTest
+ -->--sun-misc-unsafe-memory-access=allow <!--
+ -->--enable-native-access=ALL-UNNAMED <!--
+ -->-Dio.netty.tryReflectionSetAccessible=true
</surefire.module.config>
</properties>
diff --git a/flink-python/pyflink/pyflink_gateway_server.py
b/flink-python/pyflink/pyflink_gateway_server.py
index ffc1e26ab5f..84cdc03071a 100644
--- a/flink-python/pyflink/pyflink_gateway_server.py
+++ b/flink-python/pyflink/pyflink_gateway_server.py
@@ -276,6 +276,9 @@ def launch_gateway_server_process(env, args):
*jvm_args,
"-XX:+IgnoreUnrecognizedVMOptions",
"--add-opens=jdk.proxy2/jdk.proxy2=ALL-UNNAMED",
+ "--sun-misc-unsafe-memory-access=allow",
+ "--enable-native-access=ALL-UNNAMED",
+ "-Dio.netty.tryReflectionSetAccessible=true",
*jvm_opts,
*log_settings,
"-cp",
diff --git a/flink-runtime/pom.xml b/flink-runtime/pom.xml
index a980164e1fd..5e362314c50 100644
--- a/flink-runtime/pom.xml
+++ b/flink-runtime/pom.xml
@@ -51,7 +51,10 @@ under the License.
-->--add-opens=java.base/java.io=ALL-UNNAMED <!--
AsynchronousFileIOChannelTest
-->--add-opens=java.base/java.util.concurrent=ALL-UNNAMED <!--
-
-->-Djunit.platform.reflection.search.useLegacySemantics=true
+
-->-Djunit.platform.reflection.search.useLegacySemantics=true <!--
+ MemoryMappedBoundedDataTest
+ -->--sun-misc-unsafe-memory-access=allow <!--
+ -->--enable-native-access=ALL-UNNAMED
</surefire.module.config>
</properties>
diff --git a/flink-tests/pom.xml b/flink-tests/pom.xml
index a72acfe1dd8..4ef3c5f273d 100644
--- a/flink-tests/pom.xml
+++ b/flink-tests/pom.xml
@@ -39,7 +39,10 @@ under the License.
chill ArraysAsListSerializer
-->--add-opens=java.base/java.util=ALL-UNNAMED <!--
Kryo File (GroupReduceITCase)
- -->--add-opens=java.base/java.io=ALL-UNNAMED
+ -->--add-opens=java.base/java.io=ALL-UNNAMED <!--
+ ClusterEntrypointITCase
-->--sun-misc-unsafe-memory-access=allow <!--
+ -->--enable-native-access=ALL-UNNAMED <!--
+ -->-Dio.netty.tryReflectionSetAccessible=true
</surefire.module.config>
</properties>