Skip to content

Commit

Permalink
[test] Fix test execution issue with JDK17 (apache#14099)
Browse files Browse the repository at this point in the history
* add --add-opens java.base/java.lang=ALL-UNNAMED option
  • Loading branch information
nicoloboschi authored Feb 4, 2022
1 parent 9c9adbf commit 7762dea
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1885,7 +1885,10 @@ flexible messaging model and an intuitive client API.</description>
<!-- see https://github.com/apache/pulsar/issues/8445 -->
<maven.compiler.release>${maven.compiler.target}</maven.compiler.release>
<!-- required for running tests on JDK11+ -->
<test.additional.args> --add-opens java.base/jdk.internal.loader=ALL-UNNAMED </test.additional.args>
<test.additional.args>
--add-opens java.base/jdk.internal.loader=ALL-UNNAMED
--add-opens java.base/java.lang=ALL-UNNAMED <!--Mockito-->
</test.additional.args>
</properties>
<build>
<pluginManagement>
Expand Down

0 comments on commit 7762dea

Please sign in to comment.