From 4516e0d413304dd72338d312120348550f4a00af Mon Sep 17 00:00:00 2001 From: Brian Clozel Date: Tue, 19 Dec 2023 18:06:47 +0100 Subject: [PATCH] Ignore XML tests on JDK 22 This is until https://bugs.openjdk.org/browse/JDK-8322216 is resolved. See gh-31459 --- .../org/springframework/oxm/jaxb/Jaxb2MarshallerTests.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spring-oxm/src/test/java/org/springframework/oxm/jaxb/Jaxb2MarshallerTests.java b/spring-oxm/src/test/java/org/springframework/oxm/jaxb/Jaxb2MarshallerTests.java index c5fa21337ec..7806276d8e6 100644 --- a/spring-oxm/src/test/java/org/springframework/oxm/jaxb/Jaxb2MarshallerTests.java +++ b/spring-oxm/src/test/java/org/springframework/oxm/jaxb/Jaxb2MarshallerTests.java @@ -36,6 +36,8 @@ import jakarta.xml.bind.JAXBElement; import jakarta.xml.bind.annotation.XmlRootElement; import jakarta.xml.bind.annotation.XmlType; import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.condition.DisabledForJreRange; +import org.junit.jupiter.api.condition.JRE; import org.mockito.ArgumentCaptor; import org.mockito.InOrder; import org.xml.sax.Attributes; @@ -306,6 +308,7 @@ class Jaxb2MarshallerTests extends AbstractMarshallerTests { } @Test // SPR-10806 + @DisabledForJreRange(min = JRE.JAVA_22, disabledReason = "https://bugs.openjdk.org/browse/JDK-8322216") void unmarshalStreamSourceWithXmlOptions() throws Exception { final jakarta.xml.bind.Unmarshaller unmarshaller = mock(); Jaxb2Marshaller marshaller = new Jaxb2Marshaller() { @@ -340,6 +343,7 @@ class Jaxb2MarshallerTests extends AbstractMarshallerTests { } @Test // SPR-10806 + @DisabledForJreRange(min = JRE.JAVA_22, disabledReason = "https://bugs.openjdk.org/browse/JDK-8322216") void unmarshalSaxSourceWithXmlOptions() throws Exception { final jakarta.xml.bind.Unmarshaller unmarshaller = mock(); Jaxb2Marshaller marshaller = new Jaxb2Marshaller() {