Details
-
Type:
New Feature
-
Status:
In Progress
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.9
-
Fix Version/s: None
-
Component/s: JsonParser
-
Labels:None
-
Number of attachments :
Description
http://stackoverflow.com/a/8321255/14731 discusses how to differentiate between properties that are implicitly or explicitly set to default values. The problem with this solution is that we are forced to move variables from the constructor to setter methods and remove the "final" modifier on the field declaration.
I'd like to propose being able to declare properties as "required" and have Jackson throw an exception during deserialization if they are missing (as opposed to setting default values).
Is this same as
JACKSON-538?