From ec5e94cc188bfb54ff96b8312548176c3c02c80a Mon Sep 17 00:00:00 2001 From: Alexander Kriegisch Date: Tue, 28 Mar 2023 16:29:12 +0200 Subject: Add basic tests for Java 20, deactivate Java 19 preview tests Signed-off-by: Alexander Kriegisch --- util/src/main/java/org/aspectj/util/LangUtil.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'util') diff --git a/util/src/main/java/org/aspectj/util/LangUtil.java b/util/src/main/java/org/aspectj/util/LangUtil.java index 7151c092b..97676ea84 100644 --- a/util/src/main/java/org/aspectj/util/LangUtil.java +++ b/util/src/main/java/org/aspectj/util/LangUtil.java @@ -187,6 +187,10 @@ public class LangUtil { return 20 <= vmVersion; } + public static boolean is21VMOrGreater() { + return 21 <= vmVersion; + } + /** * Shorthand for "if null, throw IllegalArgumentException" * -- cgit v1.2.3