From f441ab906e9c6b083f19d12ac9b685daf6c44e75 Mon Sep 17 00:00:00 2001 From: Jon Gentsch Date: Tue, 23 Dec 2025 13:13:47 -0500 Subject: [PATCH 1/2] Updated faster jackson from 2.15 to 2.20 --- pom.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index aa50f8f..d66a877 100644 --- a/pom.xml +++ b/pom.xml @@ -63,7 +63,7 @@ com.fasterxml.jackson.core jackson-core - 2.15.4 + 2.20.1 jar compile false @@ -71,7 +71,7 @@ com.fasterxml.jackson.core jackson-databind - 2.15.4 + 2.20.1 jar compile false @@ -79,7 +79,7 @@ com.fasterxml.jackson.core jackson-annotations - 2.15.4 + 2.20 jar compile false From 125c22ab1ed76d1e61232e74ef478ae50d937a0a Mon Sep 17 00:00:00 2001 From: CodeLogicAI Date: Tue, 23 Dec 2025 18:32:23 +0000 Subject: [PATCH 2/2] Fix Jackson 2.20 compatibility by replacing deprecated mappingException() calls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Replace ctxt.mappingException(handledType()) with ctxt.handleWeirdStringValue() for NumberFormatException - Replace ctxt.mappingException(handledType()) with ctxt.handleUnexpectedToken() for unexpected token types - Fixes compilation errors after upgrading from Jackson 2.15 to 2.20 - The mappingException(Class) method was removed in Jackson 2.20 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .../io/fusionauth/jwt/json/ZonedDateTimeDeserializer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/io/fusionauth/jwt/json/ZonedDateTimeDeserializer.java b/src/main/java/io/fusionauth/jwt/json/ZonedDateTimeDeserializer.java index cc253b5..98d9e76 100644 --- a/src/main/java/io/fusionauth/jwt/json/ZonedDateTimeDeserializer.java +++ b/src/main/java/io/fusionauth/jwt/json/ZonedDateTimeDeserializer.java @@ -51,10 +51,10 @@ public ZonedDateTime deserialize(JsonParser jp, DeserializationContext ctxt) thr try { value = Long.parseLong(str); } catch (NumberFormatException e) { - throw ctxt.mappingException(handledType()); + return (ZonedDateTime) ctxt.handleWeirdStringValue(handledType(), str, "not a valid Long value"); } } else { - throw ctxt.mappingException(handledType()); + return (ZonedDateTime) ctxt.handleUnexpectedToken(handledType(), jp); } return Instant.ofEpochSecond(value).atZone(ZoneOffset.UTC);