diff --git a/extensions/jaxb/deployment/src/main/java/io/quarkus/jaxb/deployment/JaxbProcessor.java b/extensions/jaxb/deployment/src/main/java/io/quarkus/jaxb/deployment/JaxbProcessor.java index fbc1fbbc04ad45..ff38ba44ebf9bf 100644 --- a/extensions/jaxb/deployment/src/main/java/io/quarkus/jaxb/deployment/JaxbProcessor.java +++ b/extensions/jaxb/deployment/src/main/java/io/quarkus/jaxb/deployment/JaxbProcessor.java @@ -211,8 +211,6 @@ void processAnnotationsAndIndexFiles( String className = xmlSchemaInstance.target().asClass().name().toString(); reflectiveClass.produce(new ReflectiveClassBuildItem(false, false, className)); - - classesToBeBound.add(className); } } diff --git a/extensions/jaxb/deployment/src/test/java/io/quarkus/jaxb/deployment/info/package-info.java b/extensions/jaxb/deployment/src/test/java/io/quarkus/jaxb/deployment/info/package-info.java new file mode 100644 index 00000000000000..f771bed3da497e --- /dev/null +++ b/extensions/jaxb/deployment/src/test/java/io/quarkus/jaxb/deployment/info/package-info.java @@ -0,0 +1,10 @@ +/** + * The inclusion of this file is to verify that the produced JAXBContext works fine with it, otherwise the build fails. + */ +@XmlSchema(namespace = "http://abc.com", xmlns = { + @XmlNs(prefix = "abc", namespaceURI = "http://abc.com") +}) +package io.quarkus.jaxb.deployment.info; + +import javax.xml.bind.annotation.XmlNs; +import javax.xml.bind.annotation.XmlSchema;