jakartaee / jakartaee/jaxb-api
XmlSeeAlso enhancements
@glassfishrobot is already working on this.
Since Sep 21, 2018.
- Dominant language
- Java
- Stars
- 79
- Forks
- 48
- Avg merge
- 7h 12m
- Merged PRs (30d)
- 2
Description
I have three enhancement suggestions for @XmlSeeAlso.
1\. Allow @XmlSeeAlso to be applied to a package via package-info.java. This
will help greatly in decoupling base classes from their subclasses.
2\. Check for @XmlSeeAlso on XmlAdapter implementation classes that have been
specified via @XmlJavaTypeAdapter. This will also help greatly in decoupling
base classes from their subclasses.
3\. Allow for specifying an array of package name strings via @XmlSeeAlso. This
would work in a similar way as creating a JAXBContext with a list of package
names in that the package(s) would be scanned for classes. This one would be a
tremendous help in adding runtime flexibility to JAXB when used with JAXWS –
extension subclasses could be loaded at runtime that are not available at
compile time.
public @interface XmlSeeAlso {
Class[] value();
String[] packages();
}
#### Environment
Operating System: All
Platform: All
#### Affected Versions
[2.2]
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.