diff options
author | Alexander Kriegisch <Alexander@Kriegisch.name> | 2023-10-05 08:09:24 +0700 |
---|---|---|
committer | Alexander Kriegisch <Alexander@Kriegisch.name> | 2023-10-05 08:09:24 +0700 |
commit | 78ee9cebd81f1496d69bd0c933e3ee16fa02a96f (patch) | |
tree | f730564caf08786026dc6c9196fb8ba9d9fc3fc9 /util/src | |
parent | 3533dcd043ca31e6988fae714882328d23543a65 (diff) | |
download | aspectj-78ee9cebd81f1496d69bd0c933e3ee16fa02a96f.tar.gz aspectj-78ee9cebd81f1496d69bd0c933e3ee16fa02a96f.zip |
Add test infrastructure for Java 21 (WIP)
The tests and their XML definitions are still copy & paste and need to
be cleaned up. Separate Java 21 feature tests do not exist yet.
Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
Diffstat (limited to 'util/src')
-rw-r--r-- | util/src/main/java/org/aspectj/util/LangUtil.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/util/src/main/java/org/aspectj/util/LangUtil.java b/util/src/main/java/org/aspectj/util/LangUtil.java index 97676ea84..43d100165 100644 --- a/util/src/main/java/org/aspectj/util/LangUtil.java +++ b/util/src/main/java/org/aspectj/util/LangUtil.java @@ -191,6 +191,10 @@ public class LangUtil { return 21 <= vmVersion; } + public static boolean is22VMOrGreater() { + return 22 <= vmVersion; + } + /** * Shorthand for "if null, throw IllegalArgumentException" * |