Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8185721

JAXB api openness propagation fails for JAXB annotated classes inner types

    Details

    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              zli Zheng Jun Li
              Reporter:
              rgrigoriadi Roman Grigoriadi
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: