jakartaee / jakartaee/jaxb-api
allow @XmlElementWrapper on any property
Open
enhancement
Major
- Dominant language
- Java
- Stars
- 79
- Forks
- 48
- Avg merge
- 7h 12m
- Merged PRs (30d)
- 2
Description
Currently, @XmlElementWrapper is only allowed on Collection properties. It
would be useful to allow this annotation on any property to supported nested XML
that doesn't necessarily make sense in the object model. For example:
@XmlElementWrapper(name="sessionTimeout")
@XmlElement(name="seconds")
private Seconds sessionTimeout;
To produce:
60
#### Environment
Operating System: All
Platform: All
#### Affected Versions
[2.1 EA1]
Contributor guide
Assessment
This issue has not been assessed yet.