You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
only Exceptions are being caught, but e.g. a java.lang.NoClassDefFoundError is not an Exception but only derived from a Throwable. Since all engines are IMHO optional even a NoClassDefFoundError should be caught and logged. For a concrete use cases where this is an issue look at jbake-org/jbake-maven-plugin#17 (comment).
At the same time it would be reasonable to lower the log level to WARN in (
This is a regression caused by 9a0727a. So it only happens since v 2.6.2.
kwin
changed the title
TemplateEngines.tryLoadEngines should catch all throwable related to class loading issues
TemplateEngines.tryLoadEngines should catch all throwables related to class loading issues
Nov 12, 2018
kwin
added a commit
to kwin/jbake
that referenced
this issue
Nov 12, 2018
Currently in
jbake/jbake-core/src/main/java/org/jbake/template/TemplateEngines.java
Line 80 in aebf496
Exception
s are being caught, but e.g. ajava.lang.NoClassDefFoundError
is not anException
but only derived from aThrowable
. Since all engines are IMHO optional even aNoClassDefFoundError
should be caught and logged. For a concrete use cases where this is an issue look at jbake-org/jbake-maven-plugin#17 (comment).At the same time it would be reasonable to lower the log level to WARN in (
jbake/jbake-core/src/main/java/org/jbake/template/TemplateEngines.java
Line 81 in aebf496
The text was updated successfully, but these errors were encountered: