diff --git a/release-notes/CREDITS b/release-notes/CREDITS
index cf8f03433b..875b7ffd3c 100644
--- a/release-notes/CREDITS
+++ b/release-notes/CREDITS
@@ -221,7 +221,12 @@ Dylan Scott (dylanscott@github)
issue)
(2.5.2)
+Dmitry Spikhalskiy (Spikhalskiy@github)
+ * Reported #731, suggested the way to fix it: XmlAdapter result marshaling error in
+ case of ValueType=Object
+ (2.5.3)
+
John Meyer (jpmeyer@github)
- * Reported, contributed fix for #745: EnumDeserializer.deserializerForCreator fails
+ * Reported, contributed fix for #745: EnumDeserializer.deserializerForCreator() fails
when used to deserialize a Map key
(2.5.3)
diff --git a/release-notes/VERSION b/release-notes/VERSION
index 8856d08bd9..cc413c95eb 100644
--- a/release-notes/VERSION
+++ b/release-notes/VERSION
@@ -6,6 +6,8 @@ Project: jackson-databind
2.5.3 (not yet released)
+#731: XmlAdapter result marshaling error in case of ValueType=Object
+ (reported, debugged by Dmitry S)
#742: Allow deserialization of `null` Object Id (missing already allowed)
#744: Custom deserializer with parent object update failing
(reported by migel@github)
diff --git a/src/main/java/com/fasterxml/jackson/databind/JavaType.java b/src/main/java/com/fasterxml/jackson/databind/JavaType.java
index 822130b007..07b6ba9683 100644
--- a/src/main/java/com/fasterxml/jackson/databind/JavaType.java
+++ b/src/main/java/com/fasterxml/jackson/databind/JavaType.java
@@ -290,6 +290,17 @@ public boolean isConcrete() {
@Override
public boolean isMapLikeType() { return false; }
+ /**
+ * Convenience method, short-hand for
+ *
+ * getRawClass() == Object.class
+ *
+ * and used to figure if we basically have "untyped" type object.
+ *
+ * @since 2.5
+ */
+ public final boolean isJavaLangObject() { return _class == Object.class; }
+
/**
* Accessor for checking whether handlers for dealing with values of
* this type should use static typing (as opposed to dynamic typing).
@@ -299,7 +310,7 @@ public boolean isConcrete() {
* @since 2.2
*/
public final boolean useStaticType() { return _asStatic; }
-
+
/*
/**********************************************************
/* Public API, type parameter access; pass-through
diff --git a/src/main/java/com/fasterxml/jackson/databind/ser/BeanSerializerFactory.java b/src/main/java/com/fasterxml/jackson/databind/ser/BeanSerializerFactory.java
index ec540cc6d8..14e6d9345c 100644
--- a/src/main/java/com/fasterxml/jackson/databind/ser/BeanSerializerFactory.java
+++ b/src/main/java/com/fasterxml/jackson/databind/ser/BeanSerializerFactory.java
@@ -159,7 +159,8 @@ public JsonSerializer