You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 5, 2019. It is now read-only.
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: