Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JAXB api openness propagation fails for JAXB annotated classes inner types #1182

Open
Tomas-Kraus opened this issue Apr 20, 2018 · 1 comment

Comments

@Tomas-Kraus
Copy link
Member

This issue was previously tracked via: https://bugs.openjdk.java.net/browse/JDK-8185721

Suggested by the spec only "@XmlRootType" JAXB annotated classes should be passed to context creation JAXBContext#newInstance(Class[] classesToBeBound, ..)

For example, given the following Java classes:

@XmlRootElement2 class Foo { Bar b;}
@XmlType class Bar { FooBar fb;}
@XmlType class FooBar { int x; }

The invocation of JAXBContext.newInstance(Foo.class) registers Foo and the statically referenced classes, Bar and FooBar.

If Bar and FooBar are in different package than Foo, than openness is not propagated for them with current implementation.

@Tomas-Kraus
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant