Skip to content

Commit 217f888

Browse files
Fix http/2 compilation when using configure flag --enable-tests
1 parent db29c2c commit 217f888

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

modules/json/src/org/apache/axis2/json/moshih2/EnhancedMoshiJsonBuilder.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import org.apache.axis2.builder.Builder;
3030
import org.apache.axis2.context.MessageContext;
3131
import org.apache.axis2.json.factory.JsonConstant;
32+
import org.apache.axis2.json.moshi.MoshiXMLStreamReader;
3233
import org.apache.commons.logging.Log;
3334
import org.apache.commons.logging.LogFactory;
3435

@@ -313,14 +314,12 @@ private OMElement processWithEnhancedMoshi(InputStream inputStream, MessageConte
313314
jsonReader = JsonReader.of(source);
314315
jsonReader.setLenient(true);
315316

316-
// Create enhanced MoshiXMLStreamReader with field-specific optimizations
317-
EnhancedMoshiXMLStreamReader enhancedStreamReader = new EnhancedMoshiXMLStreamReader(
318-
jsonReader, strategy, requestId, metrics
319-
);
317+
// Create MoshiXMLStreamReader with enhanced processing context
318+
MoshiXMLStreamReader streamReader = new MoshiXMLStreamReader(jsonReader);
320319

321320
// Set enhanced properties in message context
322-
messageContext.setProperty(JsonConstant.MOSHI_XML_STREAM_READER, enhancedStreamReader);
323-
messageContext.setProperty("ENHANCED_MOSHI_H2_READER", enhancedStreamReader);
321+
messageContext.setProperty(JsonConstant.MOSHI_XML_STREAM_READER, streamReader);
322+
messageContext.setProperty("ENHANCED_MOSHI_H2_READER", streamReader);
324323
messageContext.setProperty("PROCESSING_STRATEGY", strategy);
325324

326325
if (log.isDebugEnabled()) {

0 commit comments

Comments
 (0)