Skip to content
Permalink
Browse files
IGNITE-16404 Enable Unsafe for netty
  • Loading branch information
SammyVimes committed Jan 27, 2022
1 parent 74649e9 commit 789df338fcf2de124ca82c7c710857a39dec6bd4
Showing 2 changed files with 12 additions and 2 deletions.
@@ -111,6 +111,8 @@ public RunningNode start(
var cmdArgs = new ArrayList<String>();

cmdArgs.add("java");
cmdArgs.add("--add-opens java.base/jdk.internal.misc=ALL-UNNAMED");
cmdArgs.add("-Dio.netty.tryReflectionSetAccessible=true");

if (javaLogProps != null) {
cmdArgs.add("-Djava.util.logging.config.file=" + javaLogProps.toAbsolutePath());
@@ -1024,7 +1024,11 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>-Djava.util.logging.config.file=../../config/java.util.logging.properties</argLine>
<argLine>
--add-opens java.base/jdk.internal.misc=ALL-UNNAMED
-Dio.netty.tryReflectionSetAccessible=true
-Djava.util.logging.config.file=../../config/java.util.logging.properties
</argLine>
<excludes>
<exclude>%regex[.*(It)[A-Z].*]</exclude>
<!-- Exclude inner classes (preserve default behaviour) -->
@@ -1040,7 +1044,11 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<configuration>
<argLine>-Djava.util.logging.config.file=../../config/java.util.logging.properties</argLine>
<argLine>
--add-opens java.base/jdk.internal.misc=ALL-UNNAMED
-Dio.netty.tryReflectionSetAccessible=true
-Djava.util.logging.config.file=../../config/java.util.logging.properties
</argLine>
<useModulePath>false</useModulePath>
<includes>
<include>%regex[.*(It)[A-Z].*]</include>

0 comments on commit 789df33

Please sign in to comment.