diff options
author | chibash <chiba@javassist.org> | 2016-12-20 18:07:11 +0900 |
---|---|---|
committer | chibash <chiba@javassist.org> | 2016-12-20 18:07:11 +0900 |
commit | 6a3ed31976e54f2523a6e41dfee9001b3cce58c8 (patch) | |
tree | 2cf500a5eccad6e0603da59b7f121ab75ef4b0d3 /build.xml | |
parent | 778c463e5aa1795591e56916c6c1c3205317fc3e (diff) | |
download | javassist-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.xml | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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" /> |