Skip to content

Commit

Permalink
more logging in jaxbutil when loading schemas to debug what's happeni…
Browse files Browse the repository at this point in the history
…ng on bamboo ci/cd
  • Loading branch information
1azyman committed Apr 30, 2020
1 parent 37a9071 commit 9540052
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -216,6 +216,10 @@ public static <T> Class<T> findClassForType(QName typeName, Package pkg) {
String namespace = PACKAGE_NAMESPACES.get(pkg);
if (namespace == null) {
XmlSchema xmlSchemaAnnotation = pkg.getAnnotation(XmlSchema.class);
if (xmlSchemaAnnotation == null) {
LOGGER.error("Package namespace unknown, there is also no XmlSchema annotation on package {}, type {}", pkg.getName(), typeName);
}

namespace = xmlSchemaAnnotation.namespace();
PACKAGE_NAMESPACES.put(pkg, namespace);
}
Expand Down

0 comments on commit 9540052

Please sign in to comment.