aboutsummaryrefslogtreecommitdiffstats
path: root/build.xml
diff options
context:
space:
mode:
authorchibash <chiba@javassist.org>2016-12-20 18:07:11 +0900
committerchibash <chiba@javassist.org>2016-12-20 18:07:11 +0900
commit6a3ed31976e54f2523a6e41dfee9001b3cce58c8 (patch)
tree2cf500a5eccad6e0603da59b7f121ab75ef4b0d3 /build.xml
parent778c463e5aa1795591e56916c6c1c3205317fc3e (diff)
downloadjavassist-6a3ed31976e54f2523a6e41dfee9001b3cce58c8.tar.gz
javassist-6a3ed31976e54f2523a6e41dfee9001b3cce58c8.zip
updates the test code to run on Java 9 EA+149.
Due to the specification change of jigsaw, ClassLoader#defineClass() cannot be invoked through reflection API. As a workaround, --add-opens java.base/java.lang=ALL-UNNAMED must be given to the JVM. The ant target "runtest9" adds this jvm argument.
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml12
1 files changed, 11 insertions, 1 deletions
diff --git a/build.xml b/build.xml
index d9c65013..587db2ed 100644
--- a/build.xml
+++ b/build.xml
@@ -99,7 +99,17 @@
<target name="runtest" depends="jar,test-compile">
<junit fork="true" printsummary="true" dir="${test.run.dir}">
- <jvmarg value="-XX:-FailOverToOldVerifier" />
+ <jvmarg value="-XX:-FailOverToOldVerifier"/>
+ <classpath refid="test.classpath"/>
+ <formatter type="xml" extension=".xml"/>
+ <test name="javassist.JvstTest" outfile="TestLog" />
+ </junit>
+ </target>
+
+ <target name="runtest9" depends="jar,test-compile">
+ <junit fork="true" printsummary="true" dir="${test.run.dir}">
+ <jvmarg line="--add-opens java.base/java.lang=ALL-UNNAMED" />
+ <jvmarg value="-XX:-FailOverToOldVerifier"/>
<classpath refid="test.classpath"/>
<formatter type="xml" extension=".xml"/>
<test name="javassist.JvstTest" outfile="TestLog" />