diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/JsonParser.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/JsonParser.java index e4bafe0cb75..8a313740bd3 100644 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/JsonParser.java +++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/JsonParser.java @@ -378,7 +378,7 @@ public class JsonParser extends BaseParser implements IJsonLikeParser { } List values = nextChild.getAccessor().getValues(theElement); - values = super.preProcessValues(nextChild, theResource, values, nextChildElem, theEncodeContext); + values = preProcessValues(nextChild, theResource, values, nextChildElem, theEncodeContext); if (values == null || values.isEmpty()) { continue; @@ -1457,7 +1457,7 @@ public class JsonParser extends BaseParser implements IJsonLikeParser { * Pre-process value - This is called in case the value is a reference * since we might modify the text */ - value = JsonParser.super.preProcessValues(myDef, theResource, Collections.singletonList(value), myChildElem, theEncodeContext).get(0); + value = preProcessValues(myDef, theResource, Collections.singletonList(value), myChildElem, theEncodeContext).get(0); RuntimeChildUndeclaredExtensionDefinition extDef = myContext.getRuntimeChildUndeclaredExtensionDefinition(); String childName = extDef.getChildNameByDatatype(value.getClass()); diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/XmlParser.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/XmlParser.java index ca9185923c8..a066caa2b8f 100644 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/XmlParser.java +++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/XmlParser.java @@ -387,7 +387,7 @@ public class XmlParser extends BaseParser /* implements IParser */ { } else { List values = nextChild.getAccessor().getValues(theElement); - values = super.preProcessValues(nextChild, theResource, values, nextChildElem, theEncodeContext); + values = preProcessValues(nextChild, theResource, values, nextChildElem, theEncodeContext); if (values == null || values.isEmpty()) { continue;