Skip to content

Commit

Permalink
disable test for JDK >=21
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Rueger <[email protected]>

Revert "disable test for JDK >=21"

This reverts commit de3c6d7.
Signed-off-by: Christoph Rueger <[email protected]>

try to see if the annotation broke build

Signed-off-by: Christoph Rueger <[email protected]>

Revert "try to see if the annotation broke build"

This reverts commit 8fdb505.

Reapply "disable test for JDK >=21"

This reverts commit 346827b.
  • Loading branch information
chrisrueger committed Sep 17, 2024
1 parent e5ecfe7 commit c9b6366
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion biz.aQute.bndlib.tests/test/test/ClazzTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -48,12 +50,14 @@ public class ClazzTest {
* aQute.bnd.osgi.Clazz.crawl(Clazz.java:1185)
* </pre>
*
* 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"));
Expand Down

0 comments on commit c9b6366

Please sign in to comment.