diff options
author | Alexander Kriegisch <Alexander@Kriegisch.name> | 2023-10-05 08:00:47 +0700 |
---|---|---|
committer | Alexander Kriegisch <Alexander@Kriegisch.name> | 2023-10-05 08:00:47 +0700 |
commit | 3533dcd043ca31e6988fae714882328d23543a65 (patch) | |
tree | 4295918fb3bbdabae9fa730ecb64805df72f953c /tests/src/test/java/org/aspectj/systemtest/ajc1920 | |
parent | 19a414b7153c05197ac7d6c74dd3de969cf4a349 (diff) | |
download | aspectj-3533dcd043ca31e6988fae714882328d23543a65.tar.gz aspectj-3533dcd043ca31e6988fae714882328d23543a65.zip |
Beautify sanity tests using bytecode level constants
Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
Diffstat (limited to 'tests/src/test/java/org/aspectj/systemtest/ajc1920')
-rw-r--r-- | tests/src/test/java/org/aspectj/systemtest/ajc1920/SanityTestsJava20.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/src/test/java/org/aspectj/systemtest/ajc1920/SanityTestsJava20.java b/tests/src/test/java/org/aspectj/systemtest/ajc1920/SanityTestsJava20.java index 09f52c1b7..88b9670e9 100644 --- a/tests/src/test/java/org/aspectj/systemtest/ajc1920/SanityTestsJava20.java +++ b/tests/src/test/java/org/aspectj/systemtest/ajc1920/SanityTestsJava20.java @@ -8,6 +8,7 @@ package org.aspectj.systemtest.ajc1920; import junit.framework.Test; +import org.aspectj.apache.bcel.Constants; import org.aspectj.testing.XMLBasedAjcTestCase; import org.aspectj.testing.XMLBasedAjcTestCaseForJava20OrLater; @@ -20,7 +21,7 @@ import org.aspectj.testing.XMLBasedAjcTestCaseForJava20OrLater; */ public class SanityTestsJava20 extends XMLBasedAjcTestCaseForJava20OrLater { - public static final int bytecode_version_for_JDK_level = 64; + public static final int bytecode_version_for_JDK_level = Constants.MAJOR_20; // Incredibly trivial test programs that check the compiler works at all (these are easy-ish to debug) public void testSimpleJava_A() { @@ -72,7 +73,7 @@ public class SanityTestsJava20 extends XMLBasedAjcTestCaseForJava20OrLater { public void testVersionCorrect4() { runTest("simple - m"); // Must be 49.0 when -1.5 is specified - checkVersion("A", 49, 0); + checkVersion("A", Constants.MAJOR_1_5, 0); } public static Test suite() { |