From 45e72e241abe98dcfb66408402da825dd2b8e925 Mon Sep 17 00:00:00 2001 From: Sebastian Mandrean Date: Tue, 24 Feb 2026 10:47:51 +0100 Subject: [PATCH] feat: Add Jackson 3 databind/dataformat annotations to HandlerUtil copy lists Add tools.jackson.databind.annotation and tools.jackson.dataformat.xml.annotation entries to the Jackson annotation copy lists, so that Jackson 3 databind and format-specific annotations are correctly copied to getters, setters, and builders. --- src/core/lombok/core/handlers/HandlerUtil.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/core/lombok/core/handlers/HandlerUtil.java b/src/core/lombok/core/handlers/HandlerUtil.java index 091de762..4f546352 100644 --- a/src/core/lombok/core/handlers/HandlerUtil.java +++ b/src/core/lombok/core/handlers/HandlerUtil.java @@ -453,6 +453,9 @@ public class HandlerUtil { "com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper", "com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty", "com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlText", + "tools.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper", + "tools.jackson.dataformat.xml.annotation.JacksonXmlProperty", + "tools.jackson.dataformat.xml.annotation.JacksonXmlText", })); JACKSON_COPY_TO_SETTER_ANNOTATIONS = Collections.unmodifiableList(Arrays.asList(new String[] { "com.fasterxml.jackson.annotation.JacksonInject", @@ -467,10 +470,13 @@ public class HandlerUtil { "com.fasterxml.jackson.annotation.JsonUnwrapped", "com.fasterxml.jackson.annotation.JsonView", "com.fasterxml.jackson.databind.annotation.JsonDeserialize", - "tools.jackson.databind.annotation.JsonDeserialize", "com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper", "com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty", "com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlText", + "tools.jackson.databind.annotation.JsonDeserialize", + "tools.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper", + "tools.jackson.dataformat.xml.annotation.JacksonXmlProperty", + "tools.jackson.dataformat.xml.annotation.JacksonXmlText", })); JACKSON_COPY_TO_BUILDER_SINGULAR_SETTER_ANNOTATIONS = Collections.unmodifiableList(Arrays.asList(new String[] { "com.fasterxml.jackson.annotation.JsonAnySetter",