diff options
author | Alexander Kriegisch <Alexander@Kriegisch.name> | 2024-02-19 13:19:49 +0700 |
---|---|---|
committer | Alexander Kriegisch <Alexander@Kriegisch.name> | 2024-02-19 13:19:49 +0700 |
commit | f3450726d21518bd51deaf46629682d328bb3338 (patch) | |
tree | 7dfb501fe253bd06ed577fe7317c81eeb9507908 /tests/src/test/java/org/aspectj/systemtest/ajc195 | |
parent | 198957fd26d1e5cd347c0c1c3a0c9100295af4cf (diff) | |
download | aspectj-f3450726d21518bd51deaf46629682d328bb3338.tar.gz aspectj-f3450726d21518bd51deaf46629682d328bb3338.zip |
Remove most MINOR_*, MINOR_* BCEL class file versions
in favour of Constants.ClassFileVersion.of(int, int). The few ones
retained are used from production code, the vast majority of removed
ones only from test code.
This gets rid of yet another 'AspectJ_JDK_Update' tag. One less place to
check and update with each newly supported Java version. :-)
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.java | 4 |
1 files changed, 2 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 54397cf2f..34901eb00 100644 --- a/tests/src/test/java/org/aspectj/systemtest/ajc195/SanityTestsJava13.java +++ b/tests/src/test/java/org/aspectj/systemtest/ajc195/SanityTestsJava13.java @@ -22,7 +22,7 @@ import junit.framework.Test; */ public class SanityTestsJava13 extends XMLBasedAjcTestCaseForJava13OrLater { - public static final int bytecode_version_for_JDK_level = Constants.MAJOR_13; + public static final int bytecode_version_for_JDK_level = Constants.ClassFileVersion.of(13).MAJOR; // Incredibly trivial test programs that check the compiler works at all (these are easy-ish to debug) public void testSimpleJava_A() { @@ -73,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", Constants.MAJOR_1_5, 0); + checkVersion("A", Constants.ClassFileVersion.of(5).MAJOR, 0); } |