-
Notifications
You must be signed in to change notification settings - Fork 76
Fix for issue #11 causes inconsistent with default JsonPropertyOrder behavior #74
Comments
Um... why would you use empty |
@cowtowncoder Just to illustrate that behavior for this two classes should be the same |
Unfortunately, due to Java annotations not having concept of 'null' or 'not define' value, they are not. So while unfortunate, I am not sure much can be done here. Annotations do not allow use of |
@cowtowncoder Behavior for this two situations must be the same. Because I just add annotation with default value which is this situation should not change anything. No specified order == default order. So, default befavior of CsvMapper in case of no JsonPropertyOrder should be == JsonPropertyOrder with default value - "alphabetic=false". As for me fix and Issue #11 was broking + illegal without changing default behavior thru all components and default value in this annotation. |
Ok. If the behavior is not the same that does sound wrong. I'll see what gives that. I would suggest, as an additional point, that if using CSV you really should always either specify explicit ordering, or default to using alphabetic ordering. The way 'alphabetic' works for |
Actually no. I disagree.
One possibility for 2.6 would be to re-define semantics of |
…ts validity, but to keep it around)
As per FasterXML/jackson-databind#840 this is now fixed for 2.6.0; will be in 2.6.0-rc3. |
For this two classes will be generated schemas with different fields order. Fix for Issue #11 not only broke compatibility - it make inconsistent default behavior of CsvMapper with default JsonPropertyOrder value.
The text was updated successfully, but these errors were encountered: