From 853dd91e83547d49f3a801be2bdc7a8b2ec0080f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 20 Jan 2026 13:07:52 +0100 Subject: [PATCH] build(deps): bump org.apache.juneau:juneau-marshall from 8.1.3 to 9.2.0 (#1512) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * build(deps): bump org.apache.juneau:juneau-marshall from 8.1.3 to 9.2.0 Bumps org.apache.juneau:juneau-marshall from 8.1.3 to 9.2.0. --- updated-dependencies: - dependency-name: org.apache.juneau:juneau-marshall dependency-version: 9.2.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] * fix(rest): update JuneauXmlHandler for Juneau 9.x API compatibility Replace deprecated builder() method with copy() to fix compilation error after juneau-marshall upgrade from 8.1.3 to 9.2.0. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Lukasz Lenart Co-authored-by: Claude --- plugins/rest/pom.xml | 2 +- .../org/apache/struts2/rest/handler/JuneauXmlHandler.java | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/rest/pom.xml b/plugins/rest/pom.xml index 93b4c6adc..2ba22b35d 100644 --- a/plugins/rest/pom.xml +++ b/plugins/rest/pom.xml @@ -58,7 +58,7 @@ org.apache.juneau juneau-marshall - 8.1.3 + 9.2.0 true diff --git a/plugins/rest/src/main/java/org/apache/struts2/rest/handler/JuneauXmlHandler.java b/plugins/rest/src/main/java/org/apache/struts2/rest/handler/JuneauXmlHandler.java index 584061b42..30057c4ee 100644 --- a/plugins/rest/src/main/java/org/apache/struts2/rest/handler/JuneauXmlHandler.java +++ b/plugins/rest/src/main/java/org/apache/struts2/rest/handler/JuneauXmlHandler.java @@ -62,10 +62,10 @@ public class JuneauXmlHandler implements ContentTypeHandler { LOG.debug("Converting an object of {} into string", obj.getClass().getName()); try { serializer - .builder() - .locale(invocation.getInvocationContext().getLocale()) - .build() - .serialize(obj, stream); + .copy() + .locale(invocation.getInvocationContext().getLocale()) + .build() + .serialize(obj, stream); return null; } catch (SerializeException e) { throw new IOException(e);