Skip to content

Commit

Permalink
Include add-opens flags for tests/JDK9+
Browse files Browse the repository at this point in the history
  • Loading branch information
sdedic committed Oct 23, 2023
1 parent 409740b commit 9f51a38
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions java/java.mx.project/nbproject/project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ requires.nb.javac=true

# For testing we need path to the MX executable. The executable is checked out by the buildscript.
test.run.args=-Dorg.netbeans.modules.java.mx.project.test.mxpath=${basedir}/test/unit/data/mx/mx

test.jms.flags=--add-opens=java.base/java.net=ALL-UNNAMED
2 changes: 2 additions & 0 deletions nbbuild/templates/common.xml
Original file line number Diff line number Diff line change
Expand Up @@ -736,6 +736,7 @@
</target>

<target name="-do-junit" depends="test-init">
<property name="test.jms.flags" value=""/>
<macrodef name="junit-impl">
<attribute name="test.type"/>
<attribute name="disable.apple.ui" default="false"/>
Expand All @@ -747,6 +748,7 @@
<classpath refid="test.@{test.type}.run.cp"/>
<syspropertyset refid="test.@{test.type}.properties"/>
<jvmarg value="${test.bootclasspath.prepend.args}"/>
<jvmarg line="${test.jms.flags}"/>
<jvmarg line="${test.insane.prepend.args}"/>
<jvmarg line="${test.run.args}"/>
<jvmarg line="${nbjdk.enable_security_manager}" />
Expand Down

0 comments on commit 9f51a38

Please sign in to comment.