This is an automated email from the ASF dual-hosted git repository.
lukaszlenart pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/struts.git
The following commit(s) were added to refs/heads/main by this push:
new 853dd91e8 build(deps): bump org.apache.juneau:juneau-marshall from
8.1.3 to 9.2.0 (#1512)
853dd91e8 is described below
commit 853dd91e83547d49f3a801be2bdc7a8b2ec0080f
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
AuthorDate: Tue Jan 20 13:07:52 2026 +0100
build(deps): bump org.apache.juneau:juneau-marshall from 8.1.3 to 9.2.0
(#1512)
* 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] <[email protected]>
* 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 <[email protected]>
---------
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot]
<49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Lukasz Lenart <[email protected]>
Co-authored-by: Claude <[email protected]>
---
plugins/rest/pom.xml | 2 +-
.../java/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 @@
<dependency>
<groupId>org.apache.juneau</groupId>
<artifactId>juneau-marshall</artifactId>
- <version>8.1.3</version>
+ <version>9.2.0</version>
<optional>true</optional>
</dependency>
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);