Closed slandelle closed 9 years ago
@RichardHightower I can provide a PR if you agree with the suggested fix :-)
It was reported that javax.javaee-api
version 7.0 crashes with a different Exception: java.util.MissingResourceException: Can't find bundle for base name javax.servlet.LocalStrings, locale pt_BR
IMO, the best solution is to catch Throwable
here.
I agree.
I accept and thank you for doing this.
Binaries in "javax/javaee-api" jar are especially constructed so to that the classes it contains won't load and crash with a
ClassFormatError
.So if this jar is in the classpath, Sys will crash as it only traps
ClassNotFoundException
. I say Sys should trapClassFormatError
too.