jakartaee / jakartaee/jaxb-api

allow @XmlElementWrapper on any property

Open
#245 5 comments 0 reactions 1 assignee Claimed by @glassfishrobot View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.