aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/test/java/org/aspectj/systemtest/ajc195
diff options
context:
space:
mode:
authorAlexander Kriegisch <Alexander@Kriegisch.name>2023-10-05 08:00:47 +0700
committerAlexander Kriegisch <Alexander@Kriegisch.name>2023-10-05 08:00:47 +0700
commit3533dcd043ca31e6988fae714882328d23543a65 (patch)
tree4295918fb3bbdabae9fa730ecb64805df72f953c /tests/src/test/java/org/aspectj/systemtest/ajc195
parent19a414b7153c05197ac7d6c74dd3de969cf4a349 (diff)
downloadaspectj-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/ajc195')
-rw-r--r--tests/src/test/java/org/aspectj/systemtest/ajc195/SanityTestsJava13.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/src/test/java/org/aspectj/systemtest/ajc195/SanityTestsJava13.java b/tests/src/test/java/org/aspectj/systemtest/ajc195/SanityTestsJava13.java
index f8cffca69..54397cf2f 100644
--- a/tests/src/test/java/org/aspectj/systemtest/ajc195/SanityTestsJava13.java
+++ b/tests/src/test/java/org/aspectj/systemtest/ajc195/SanityTestsJava13.java
@@ -7,6 +7,7 @@
*******************************************************************************/
package org.aspectj.systemtest.ajc195;
+import org.aspectj.apache.bcel.Constants;
import org.aspectj.testing.XMLBasedAjcTestCase;
import org.aspectj.testing.XMLBasedAjcTestCaseForJava13OrLater;
@@ -21,7 +22,7 @@ import junit.framework.Test;
*/
public class SanityTestsJava13 extends XMLBasedAjcTestCaseForJava13OrLater {
- public static final int bytecode_version_for_JDK_level = 57;
+ public static final int bytecode_version_for_JDK_level = Constants.MAJOR_13;
// 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 SanityTestsJava13 extends XMLBasedAjcTestCaseForJava13OrLater {
public void testVersionCorrect4() throws ClassNotFoundException { // check it is 49.0 when -1.5 is specified
runTest("simple - m");
- checkVersion("A", 49, 0);
+ checkVersion("A", Constants.MAJOR_1_5, 0);
}