[jOOQ/jOOQ#10145] NoClassDefFoundError when trying to load JAXB from a modularised jOOQ

This commit is contained in:
Lukas Eder 2020-04-30 16:30:22 +02:00
parent 1232edfcf9
commit e173fc32f5

View File

@ -219,8 +219,11 @@ public final class Convert {
jaxbAvailable = true;
log.debug("JAXB is available");
}
catch (Exception e) {
log.debug("JAXB not available", e.getMessage());
// [#10145] Depending on whether jOOQ is modularised or not, this can also
// be a NoClassDefFoundError.
catch (Throwable t) {
log.debug("JAXB not available", t.getMessage());
}
JAXB_AVAILABLE = jaxbAvailable;