From c9b6366b8c9f4d43a47b634479fe7bffb19779cc Mon Sep 17 00:00:00 2001 From: Christoph Rueger Date: Mon, 16 Sep 2024 18:38:10 +0200 Subject: [PATCH] disable test for JDK >=21 Signed-off-by: Christoph Rueger Revert "disable test for JDK >=21" This reverts commit de3c6d7364ab07c2e6bbb0addb85e29fe866a109. Signed-off-by: Christoph Rueger try to see if the annotation broke build Signed-off-by: Christoph Rueger Revert "try to see if the annotation broke build" This reverts commit 8fdb505512fd4897ab015af8d6ca78b25bf77357. Reapply "disable test for JDK >=21" This reverts commit 346827b0b8f5867081b1975c010c2d61c11bf405. --- biz.aQute.bndlib.tests/test/test/ClazzTest.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/biz.aQute.bndlib.tests/test/test/ClazzTest.java b/biz.aQute.bndlib.tests/test/test/ClazzTest.java index 6fbf2b0740..7d99c30812 100644 --- a/biz.aQute.bndlib.tests/test/test/ClazzTest.java +++ b/biz.aQute.bndlib.tests/test/test/ClazzTest.java @@ -18,6 +18,8 @@ import java.util.concurrent.atomic.AtomicReference; import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.condition.EnabledForJreRange; +import org.junit.jupiter.api.condition.JRE; import org.xml.sax.SAXException; import aQute.bnd.component.DSAnnotationReader; @@ -48,12 +50,14 @@ public class ClazzTest { * aQute.bnd.osgi.Clazz.crawl(Clazz.java:1185) * * - * This happened on the Jini platform + * This happened on the Jini platform. This test stops working with Java + * >=21 (https://bugs.openjdk.org/browse/JDK-8313765) * * @throws Exception */ @Test + @EnabledForJreRange(max = JRE.JAVA_20) public void testJiniPlatformClasses() throws Exception { try (Builder b = new Builder()) { b.addClasspath(IO.getFile("jar/jsk-platform.jar"));