Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 363197 - @XmlElementWrapper - Empty collections and nillable property
Summary: @XmlElementWrapper - Empty collections and nillable property
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 291406 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-11-08 11:42 EST by Blaise Doughan CLA
Modified: 2022-06-09 10:28 EDT (History)
3 users (show)

See Also:


Attachments
WIP (4.28 KB, patch)
2011-11-11 12:40 EST, Rick Barkhouse CLA
no flags Details | Diff
WIP (7.39 KB, patch)
2011-11-11 16:18 EST, Rick Barkhouse CLA
no flags Details | Diff
Work in progress (8.29 KB, patch)
2011-11-14 14:16 EST, Rick Barkhouse CLA
no flags Details | Diff
Work in progress (7.90 KB, patch)
2011-11-14 14:20 EST, Rick Barkhouse CLA
no flags Details | Diff
Work in progress (7.61 KB, patch)
2011-11-14 14:21 EST, Rick Barkhouse CLA
no flags Details | Diff
Work in progress (7.61 KB, patch)
2011-11-14 14:29 EST, Rick Barkhouse CLA
no flags Details | Diff
Work in progress (36.18 KB, patch)
2011-11-15 16:41 EST, Rick Barkhouse CLA
no flags Details | Diff
WIP - re-based on 2.3 (35.62 KB, patch)
2011-12-16 17:01 EST, Rick Barkhouse CLA
no flags Details | Diff
Patch - code changes - 2.3 (18.41 KB, patch)
2011-12-19 15:23 EST, Rick Barkhouse CLA
no flags Details | Diff
Patch - test changes - 2.3 (17.03 KB, patch)
2011-12-19 15:24 EST, Rick Barkhouse CLA
no flags Details | Diff
Patch - test changes - 2.3 (21.35 KB, patch)
2011-12-19 15:26 EST, Rick Barkhouse CLA
no flags Details | Diff
Patch - test changes - 2.3 (49.04 KB, patch)
2012-01-16 13:27 EST, Rick Barkhouse CLA
no flags Details | Diff
Patch - code changes - 2.3 (32.86 KB, patch)
2012-01-16 13:27 EST, Rick Barkhouse CLA
no flags Details | Diff
Patch - code changes - 2.4 (19.58 KB, patch)
2012-01-16 13:29 EST, Rick Barkhouse CLA
no flags Details | Diff
Work in progress (69.30 KB, patch)
2012-01-24 16:54 EST, Rick Barkhouse CLA
no flags Details | Diff
Patch - Code changes (44.58 KB, patch)
2012-01-27 16:06 EST, Rick Barkhouse CLA
no flags Details | Diff
Patch - Test changes (36.97 KB, patch)
2012-01-27 16:06 EST, Rick Barkhouse CLA
no flags Details | Diff
Patch - test changes (45.11 KB, patch)
2012-01-30 13:47 EST, Rick Barkhouse CLA
no flags Details | Diff
Patch - code changes (44.58 KB, patch)
2012-01-30 13:47 EST, Rick Barkhouse CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Blaise Doughan CLA 2011-11-08 11:42:33 EST
Empty Collections

For fields/properties annotated with @XmlElementWrapper if the collection is empty the wrapper element should be marshalled out.  This is done by JAXB to differentiate between null and empty collections.

Nillable

If the field/property is annotated with @XmlElementWrapper(nillable=true) and the collection is null, then the wrapper element should be marshalled with xsi:nil="true".
Comment 1 Rick Barkhouse CLA 2011-11-11 12:40:44 EST
Created attachment 206865 [details]
WIP
Comment 2 Rick Barkhouse CLA 2011-11-11 16:18:21 EST
Created attachment 206876 [details]
WIP
Comment 3 Rick Barkhouse CLA 2011-11-14 14:16:27 EST
Created attachment 206978 [details]
Work in progress
Comment 4 Rick Barkhouse CLA 2011-11-14 14:20:07 EST
Created attachment 206979 [details]
Work in progress
Comment 5 Rick Barkhouse CLA 2011-11-14 14:21:19 EST
Created attachment 206980 [details]
Work in progress
Comment 6 Rick Barkhouse CLA 2011-11-14 14:29:39 EST
Created attachment 206983 [details]
Work in progress
Comment 7 Rick Barkhouse CLA 2011-11-15 16:41:12 EST
Created attachment 207059 [details]
Work in progress
Comment 8 Rick Barkhouse CLA 2011-12-16 17:01:07 EST
Created attachment 208512 [details]
WIP - re-based on 2.3
Comment 9 Rick Barkhouse CLA 2011-12-19 15:23:58 EST
Created attachment 208580 [details]
Patch - code changes - 2.3
Comment 10 Rick Barkhouse CLA 2011-12-19 15:24:26 EST
Created attachment 208581 [details]
Patch - test changes - 2.3
Comment 11 Rick Barkhouse CLA 2011-12-19 15:26:42 EST
Created attachment 208582 [details]
Patch - test changes - 2.3
Comment 12 Rick Barkhouse CLA 2012-01-16 13:27:33 EST
Created attachment 209576 [details]
Patch - test changes - 2.3
Comment 13 Rick Barkhouse CLA 2012-01-16 13:27:53 EST
Created attachment 209577 [details]
Patch - code changes - 2.3
Comment 14 Rick Barkhouse CLA 2012-01-16 13:29:46 EST
Created attachment 209578 [details]
Patch - code changes - 2.4
Comment 15 Rick Barkhouse CLA 2012-01-24 16:54:10 EST
Created attachment 210016 [details]
Work in progress
Comment 16 Rick Barkhouse CLA 2012-01-27 16:06:34 EST
Created attachment 210222 [details]
Patch - Code changes
Comment 17 Rick Barkhouse CLA 2012-01-27 16:06:55 EST
Created attachment 210223 [details]
Patch - Test changes
Comment 18 Rick Barkhouse CLA 2012-01-30 13:47:44 EST
Created attachment 210274 [details]
Patch - test changes
Comment 19 Rick Barkhouse CLA 2012-01-30 13:47:58 EST
Created attachment 210275 [details]
Patch - code changes
Comment 20 Rick Barkhouse CLA 2012-01-30 14:25:04 EST
Checked into trunk, waiting for bug 368863 to go into 2.3 before backporting this.
Comment 21 Rick Barkhouse CLA 2012-02-03 09:57:48 EST
Checked into 2.3.3 as well.
Comment 22 Blaise Doughan CLA 2012-05-15 15:55:50 EDT
*** Bug 291406 has been marked as a duplicate of this bug. ***
Comment 23 Eclipse Webmaster CLA 2022-06-09 10:28:23 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink