From: PJ Fanning Date: Sun, 20 Feb 2022 11:27:17 +0000 (+0000) Subject: change error message to suggest large files will need overrides X-Git-Tag: REL_5_2_1~52 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b7c2cabf3f222d129689403a41e64eedf043863c;p=poi.git change error message to suggest large files will need overrides git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898250 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/poi/src/main/java/org/apache/poi/util/IOUtils.java b/poi/src/main/java/org/apache/poi/util/IOUtils.java index d05c1387a7..1ab9f9cae9 100644 --- a/poi/src/main/java/org/apache/poi/util/IOUtils.java +++ b/poi/src/main/java/org/apache/poi/util/IOUtils.java @@ -554,7 +554,7 @@ public final class IOUtils { private static void throwRFE(long length, int maxLength) { throw new RecordFormatException(String.format(Locale.ROOT, "Tried to allocate an array of length %,d" + ", but the maximum length for this record type is %,d.\n" + - "If the file is not corrupt, please open an issue on bugzilla to request \n" + + "If the file is not corrupt or large, please open an issue on bugzilla to request \n" + "increasing the maximum allowable size for this record type.\n"+ "As a temporary workaround, consider setting a higher override value with " + "IOUtils.setByteArrayMaxOverride()",