Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.9
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
If REQUIRE_SETTERS_FOR_GETTERS is enabled, then explicitly annotated properties are ignored during serialization. For example, given this interface:
interface Foo { String getName(); void setName(String name); @JsonProperty String noSetterDefinedButSerializeAnyway(); int getValueThatIsNotSerialized(); }
The expected behavior is that the return value of the noSetterDefinedButSerializeAnyway() method is serialized. The actual behavior is that it is ignored.
See this forum thread for more information: http://jackson-users.ning.com/forum/topics/override-require-setters-for-getters-for-individual-getters
Note: original feature was
)
JACKSON-666("Feature of the Beast!" >