diff --git a/src/test/java/com/fasterxml/jackson/datatype/joda/DateTimeTest.java b/src/test/java/com/fasterxml/jackson/datatype/joda/DateTimeTest.java index 4d3d766..b9324aa 100644 --- a/src/test/java/com/fasterxml/jackson/datatype/joda/DateTimeTest.java +++ b/src/test/java/com/fasterxml/jackson/datatype/joda/DateTimeTest.java @@ -129,6 +129,12 @@ public void testCustomPatternStyle() throws IOException if (json.contains(",")) { json = json.replace(", ", " "); } + // https://bugs.openjdk.org/browse/JDK-8284840 + // Java 21 uses NBSP/NNBSP prefixed to AM/PM in time format, instead of a normal space + if (json.contains("\u202f")) { + json = json.replace("\u202f", " "); + } + assertEquals(aposToQuotes("{'date':'1/1/70 12:00 AM'}"), json); }