Skip to content
This repository has been archived by the owner on Feb 5, 2019. It is now read-only.

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

Open
LanceAndersen opened this issue Apr 20, 2018 · 0 comments

Comments

@LanceAndersen
Copy link

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.

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

No branches or pull requests

1 participant