Skip to content

Commit 4516e0d

Browse files
committed
Ignore XML tests on JDK 22
This is until https://bugs.openjdk.org/browse/JDK-8322216 is resolved. See gh-31459
1 parent a23375c commit 4516e0d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spring-oxm/src/test/java/org/springframework/oxm/jaxb/Jaxb2MarshallerTests.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636
import jakarta.xml.bind.annotation.XmlRootElement;
3737
import jakarta.xml.bind.annotation.XmlType;
3838
import org.junit.jupiter.api.Test;
39+
import org.junit.jupiter.api.condition.DisabledForJreRange;
40+
import org.junit.jupiter.api.condition.JRE;
3941
import org.mockito.ArgumentCaptor;
4042
import org.mockito.InOrder;
4143
import org.xml.sax.Attributes;
@@ -306,6 +308,7 @@ void marshalAWrappedObjectHoldingAnXmlElementDeclElement() throws Exception {
306308
}
307309

308310
@Test // SPR-10806
311+
@DisabledForJreRange(min = JRE.JAVA_22, disabledReason = "https://bugs.openjdk.org/browse/JDK-8322216")
309312
void unmarshalStreamSourceWithXmlOptions() throws Exception {
310313
final jakarta.xml.bind.Unmarshaller unmarshaller = mock();
311314
Jaxb2Marshaller marshaller = new Jaxb2Marshaller() {
@@ -340,6 +343,7 @@ public jakarta.xml.bind.Unmarshaller createUnmarshaller() {
340343
}
341344

342345
@Test // SPR-10806
346+
@DisabledForJreRange(min = JRE.JAVA_22, disabledReason = "https://bugs.openjdk.org/browse/JDK-8322216")
343347
void unmarshalSaxSourceWithXmlOptions() throws Exception {
344348
final jakarta.xml.bind.Unmarshaller unmarshaller = mock();
345349
Jaxb2Marshaller marshaller = new Jaxb2Marshaller() {

0 commit comments

Comments
 (0)