| Summary: | ListWrapper should not throw exception when unmarshalling null values (on a non-nullable property) | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Blaise Doughan <blaise.doughan> | ||||||||||||
| Component: | Eclipselink | Assignee: | Blaise Doughan <blaise.doughan> | ||||||||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||||||||
| Severity: | normal | ||||||||||||||
| Priority: | P3 | CC: | eclipselink.sdo-inbox | ||||||||||||
| Version: | unspecified | ||||||||||||||
| Target Milestone: | --- | ||||||||||||||
| Hardware: | PC | ||||||||||||||
| OS: | Windows XP | ||||||||||||||
| Whiteboard: | |||||||||||||||
| Attachments: |
|
||||||||||||||
Created attachment 210808 [details]
SDO - Test Cases
Created attachment 210809 [details]
SDO - Fix
Created attachment 210812 [details]
SDO - Test Cases
Fix checked into trunk at rev: 10829 Fix checked into 2.3.3 at rev: 10830 Code Reviewed By: Matt MacIvor Fix Details: Set the following on the XMLCompositeDirectCollectionMapping: mapping.getNullPolicy().setNullRepresentedByEmptyNode(false); This fix resulted in an undesired behaviour change. Created attachment 210821 [details]
SDO - Fix (Part 2)
Created attachment 210822 [details]
SDO - Test Cases (Part 2)
Fix (Part 2) checked into trunk at rev: 10831 Fix (Part 2) checked into 2.3.3 at rev: 10832 Code reviewed by: Matt MacIvor Fix Details: - Reverted change from initial fix - Moved the check for null value from ListWrapper.addAll(Collection, boolean) to ListWrapper.addAll(Collection). The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |
The following document should be read in as having 3 items, 2 of them being empty strings. This is consistent with the JAXB behaviour. Currently the empty string values are being brought in as null, which is causing errors with non-nillable properties. <root> <item/> <item>ABC</item> <item></item> </root>