mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
修复NoSuchMethodError未捕获问题
This commit is contained in:
@@ -5,7 +5,7 @@ import cn.hutool.core.util.ClassLoaderUtil;
|
||||
|
||||
/**
|
||||
* POI引入检查器
|
||||
*
|
||||
*
|
||||
* @author looly
|
||||
* @since 4.0.10
|
||||
*/
|
||||
@@ -20,7 +20,7 @@ public class PoiChecker {
|
||||
public static void checkPoiImport() {
|
||||
try {
|
||||
Class.forName("org.apache.poi.ss.usermodel.Workbook", false, ClassLoaderUtil.getClassLoader());
|
||||
} catch (ClassNotFoundException | NoClassDefFoundError e) {
|
||||
} catch (ClassNotFoundException | NoClassDefFoundError | NoSuchMethodError e) {
|
||||
throw new DependencyException(e, NO_POI_ERROR_MSG);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user