jakartaee / jakartaee/jaxb-api

XmlSeeAlso enhancements

Open
#258 4 comments 0 reactions 1 assignee View on GitHub

@glassfishrobot is already working on this.

Since Sep 21, 2018.

enhancement Major
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.