I am trying to create Java classes from a set of XML schemas. The following linked file is used to process mixed content in schemas:
<?xml version="1.0" encoding="UTF-8"?> <jaxb:bindings xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" jaxb:version="2.1" xmlns:xjc= "http://java.sun.com/xml/ns/jaxb/xjc" jaxb:extensionBindingPrefixes="xjc"> <jaxb:globalBindings generateMixedExtensions="true"/> </jaxb:bindings>
Code generation works fine, but one of the generated classes has @OverrideAnnotationOf from the com.sun.xml.internal.bind.annotation package. This package is included in rt.jar, but a regular java compiler cannot find it (and probably should not find it because it is internal).
Is there a way to handle mixed content and not have OverrideAnnotationOf from the internal sun package in my generated code?
source share