Fixed #369
diff --git a/release-notes/VERSION b/release-notes/VERSION
index 6329ac8..23246e0 100644
--- a/release-notes/VERSION
+++ b/release-notes/VERSION
@@ -5,6 +5,7 @@
(reported by electricmonk@github)
#353: Problems with polymorphic types, `JsonNode` (related to #88)
(reported by cemo@github)
+#369: Incorrect comparison for renaming in `POJOPropertyBuilder`
#381: Allow inlining/unwrapping of value from single-component JSON array
(contributed by yinzara@github)
#390: Change order in which managed/back references are resolved (now back-ref
diff --git a/src/main/java/com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder.java b/src/main/java/com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder.java
index 8edb71c..e109a6f 100644
--- a/src/main/java/com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder.java
+++ b/src/main/java/com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder.java
@@ -683,7 +683,12 @@
continue;
}
// different from default name?
- if (explName.equals(_name)) { // nope, skip
+ /* 14-Mar-2014, tatu: As per [#369], Must match local name... but,
+ * shouldn't really exclude namespace. Not sure what's the best
+ * fix but for now, let's not worry about that.
+ *
+ */
+ if (explName.equals(_name.getSimpleName())) { // nope, skip
continue;
}
if (renamed == null) {