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


The following commit(s) were added to refs/heads/master by this push:
     new 217f888fc6 Fix http/2 compilation when using configure flag 
--enable-tests
217f888fc6 is described below

commit 217f888fc6e5d9e586ceae234b2c77b52973bd8c
Author: Robert Lazarski <[email protected]>
AuthorDate: Sun Dec 14 00:42:49 2025 -1000

    Fix http/2 compilation when using configure flag --enable-tests
---
 .../apache/axis2/json/moshih2/EnhancedMoshiJsonBuilder.java   | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git 
a/modules/json/src/org/apache/axis2/json/moshih2/EnhancedMoshiJsonBuilder.java 
b/modules/json/src/org/apache/axis2/json/moshih2/EnhancedMoshiJsonBuilder.java
index 8ec27aa680..6e311fd451 100644
--- 
a/modules/json/src/org/apache/axis2/json/moshih2/EnhancedMoshiJsonBuilder.java
+++ 
b/modules/json/src/org/apache/axis2/json/moshih2/EnhancedMoshiJsonBuilder.java
@@ -29,6 +29,7 @@ import org.apache.axis2.Constants;
 import org.apache.axis2.builder.Builder;
 import org.apache.axis2.context.MessageContext;
 import org.apache.axis2.json.factory.JsonConstant;
+import org.apache.axis2.json.moshi.MoshiXMLStreamReader;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 
@@ -313,14 +314,12 @@ public class EnhancedMoshiJsonBuilder implements Builder {
             jsonReader = JsonReader.of(source);
             jsonReader.setLenient(true);
 
-            // Create enhanced MoshiXMLStreamReader with field-specific 
optimizations
-            EnhancedMoshiXMLStreamReader enhancedStreamReader = new 
EnhancedMoshiXMLStreamReader(
-                jsonReader, strategy, requestId, metrics
-            );
+            // Create MoshiXMLStreamReader with enhanced processing context
+            MoshiXMLStreamReader streamReader = new 
MoshiXMLStreamReader(jsonReader);
 
             // Set enhanced properties in message context
-            messageContext.setProperty(JsonConstant.MOSHI_XML_STREAM_READER, 
enhancedStreamReader);
-            messageContext.setProperty("ENHANCED_MOSHI_H2_READER", 
enhancedStreamReader);
+            messageContext.setProperty(JsonConstant.MOSHI_XML_STREAM_READER, 
streamReader);
+            messageContext.setProperty("ENHANCED_MOSHI_H2_READER", 
streamReader);
             messageContext.setProperty("PROCESSING_STRATEGY", strategy);
 
             if (log.isDebugEnabled()) {

Reply via email to