aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/java/org/apache/poi/util/XMLHelper.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/java/org/apache/poi/util/XMLHelper.java b/src/java/org/apache/poi/util/XMLHelper.java
index d9e00d9a3c..77d06b6430 100644
--- a/src/java/org/apache/poi/util/XMLHelper.java
+++ b/src/java/org/apache/poi/util/XMLHelper.java
@@ -269,7 +269,7 @@ public final class XMLHelper {
return true;
} catch (Exception e) {
logThrowable(e, "SAX Feature unsupported", name);
- } catch (AbstractMethodError ame) {
+ } catch (Error ame) {
logThrowable(ame, "Cannot set SAX feature because outdated XML parser in classpath", name);
}
return false;
@@ -281,7 +281,8 @@ public final class XMLHelper {
return true;
} catch (Exception e) {
logThrowable(e, "SAX Feature unsupported", name);
- } catch (AbstractMethodError ame) {
+ } catch (Error ame) {
+ // ignore all top error object - GraalVM in native mode is not coping with java.xml error message resources
logThrowable(ame, "Cannot set SAX feature because outdated XML parser in classpath", name);
}
return false;