This is an automated email from the ASF dual-hosted git repository. robertlazarski pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/axis-axis2-java-core.git
commit 715f48b6cc6a2da01fc68280a835e01c579fde79 Author: Robert Lazarski <[email protected]> AuthorDate: Tue May 5 03:01:29 2026 -1000 AXIS2-6104 Sync message/errorMessage setters, restore Axis2/C anchor - Axis2JsonErrorResponse: setMessage() and setErrorMessage() now update both fields to maintain the invariant that legacy and new fields always carry the same value - toc.xml: restore Axis2/C Equivalent anchor using the correct encoded form (#Axis2.2FC_Equivalent) instead of dropping to page root Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]> --- .../org/apache/axis2/json/gson/rpc/Axis2JsonErrorResponse.java | 10 ++++++++-- src/site/xdoc/docs/toc.xml | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/modules/json/src/org/apache/axis2/json/gson/rpc/Axis2JsonErrorResponse.java b/modules/json/src/org/apache/axis2/json/gson/rpc/Axis2JsonErrorResponse.java index a6f20ac15e..0762101dfc 100644 --- a/modules/json/src/org/apache/axis2/json/gson/rpc/Axis2JsonErrorResponse.java +++ b/modules/json/src/org/apache/axis2/json/gson/rpc/Axis2JsonErrorResponse.java @@ -175,13 +175,19 @@ public class Axis2JsonErrorResponse { /** Legacy error message field. Same value as {@link #getMessage()}. */ public String getErrorMessage() { return errorMessage; } - public void setErrorMessage(String errorMessage) { this.errorMessage = errorMessage; } + public void setErrorMessage(String errorMessage) { + this.errorMessage = errorMessage; + this.message = errorMessage; // keep new field in sync + } public String getError() { return error; } public void setError(String error) { this.error = error; } public String getMessage() { return message; } - public void setMessage(String message) { this.message = message; } + public void setMessage(String message) { + this.message = message; + this.errorMessage = message; // keep legacy field in sync + } public String getErrorRef() { return errorRef; } public void setErrorRef(String errorRef) { this.errorRef = errorRef; } diff --git a/src/site/xdoc/docs/toc.xml b/src/site/xdoc/docs/toc.xml index a0a10ee434..336714f0dc 100644 --- a/src/site/xdoc/docs/toc.xml +++ b/src/site/xdoc/docs/toc.xml @@ -193,7 +193,7 @@ Support</a></li> <li><a href="json-streaming-formatter.html#Problem_-_Large_HTTP_Responses_and_Reverse_Proxies">Problem: Large Responses and Reverse Proxies</a></li> <li><a href="json-streaming-formatter.html#Configuration">Configuration (axis2.xml / services.xml)</a></li> <li><a href="json-streaming-formatter.html#Services_That_Benefit">Services That Benefit (BigDataH2Service, FinancialBenchmarkService)</a></li> - <li><a href="json-streaming-formatter.html">Axis2/C Equivalent (ap_rflush)</a></li> + <li><a href="json-streaming-formatter.html#Axis2.2FC_Equivalent">Axis2/C Equivalent (ap_rflush)</a></li> </ul> </li> <li><strong>23.7 <a href="mcp-examples.html">MCP Examples — Financial Services Benchmarks</a></strong>
