diff options
author | Alexander Kriegisch <Alexander@Kriegisch.name> | 2022-03-31 14:24:03 +0700 |
---|---|---|
committer | Alexander Kriegisch <Alexander@Kriegisch.name> | 2022-03-31 14:39:36 +0700 |
commit | 020aa0361baaa9bb228c40ab88169edc135c160c (patch) | |
tree | 1e803f67b10894b652c95d84abb674603b721d8a /testing | |
parent | 7bd69575fd362e132fb3f6af948d608ec36ac8c9 (diff) | |
download | aspectj-020aa0361baaa9bb228c40ab88169edc135c160c.tar.gz aspectj-020aa0361baaa9bb228c40ab88169edc135c160c.zip |
Revert "Fix more LTW tests"
This reverts commit 63d5e3e893bd149245465de1610716930998dec8.
Diffstat (limited to 'testing')
-rw-r--r-- | testing/src/test/java/org/aspectj/testing/RunSpec.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/src/test/java/org/aspectj/testing/RunSpec.java b/testing/src/test/java/org/aspectj/testing/RunSpec.java index 181eb9062..c50b40f76 100644 --- a/testing/src/test/java/org/aspectj/testing/RunSpec.java +++ b/testing/src/test/java/org/aspectj/testing/RunSpec.java @@ -22,7 +22,7 @@ import java.util.StringTokenizer; import org.aspectj.tools.ajc.AjcTestCase; import org.aspectj.util.FileUtil; -import static org.aspectj.util.LangUtil.is9VMOrGreater; +import static org.aspectj.util.LangUtil.is16VMOrGreater; /** * @author Adrian Colyer @@ -75,7 +75,7 @@ public class RunSpec implements ITestStep { // The reason for setting this parameter for Java 9+ instead of 16+ is that it helps to avoid the JVM printing // unwanted illegal access warnings during weaving in 'useFullLTW' mode, either making existing tests fail or // having to assert on the warning messages. - vmargs += is9VMOrGreater() ? " --add-opens java.base/java.lang=ALL-UNNAMED" : ""; + vmargs += is16VMOrGreater() ? " --add-opens java.base/java.lang=ALL-UNNAMED" : ""; AjcTestCase.RunResult rr = inTestCase.run(getClassToRun(), getModuleToRun(), args, vmargs, getClasspath(), getModulepath(), useLtw, "true".equalsIgnoreCase(usefullltw)); |