Closed GoogleCodeExporter closed 8 years ago
Correction of this defect will cause some impact to existing padded field
behavior. Please note the following changes (in addition to the change already
mentioned above):
Regarding padded fields in a fixed length stream format:
1. During marshalling, null field values will be marshalled as all spaces when
required="false", regardless of the configured padding character. If
required="true", the entire field is filled with the padding character.
Regarding padded fields in any non-fixed length stream format:
1. During unmarshalling, if required="true" and there is no field text (i.e.
empty string), a 'required' field validation error is triggered. (Existing
behavior).
2. During unmarshalling, if required="false" and there is no field text (i.e.
empty string), the field text will pass validation and be subject to type
conversion.
3. During unmarshalling, if any field text is provided and the length of the
field text does not match the configured field length, a 'length' field
validation error is triggered.
4. During marshalling, if required="true" and the field value is null, the
field is filled with the padding character up to the configured length.
5. During marshalling, if required="false" and the field value is null, the
value will be marshalled as the empty string.
Original comment by kevin.s...@gmail.com
on 16 Jul 2011 at 10:22
Fixed for release 1.1.1.
Original comment by kevin.s...@gmail.com
on 18 Jul 2011 at 12:01
Original issue reported on code.google.com by
kevin.s...@gmail.com
on 15 Jul 2011 at 1:45