Author: fanningpj
Date: Sun Feb 20 11:27:17 2022
New Revision: 1898250
URL: http://svn.apache.org/viewvc?rev=1898250&view=rev
Log:
change error message to suggest large files will need overrides
Modified:
poi/trunk/poi/src/main/java/org/apache/poi/util/IOUtils.java
Modified: poi/trunk/poi/src/main/java/org/apache/poi/util/IOUtils.java
URL:
http://svn.apache.org/viewvc/poi/trunk/poi/src/main/java/org/apache/poi/util/IOUtils.java?rev=1898250&r1=1898249&r2=1898250&view=diff
==============================================================================
--- poi/trunk/poi/src/main/java/org/apache/poi/util/IOUtils.java (original)
+++ poi/trunk/poi/src/main/java/org/apache/poi/util/IOUtils.java Sun Feb 20
11:27:17 2022
@@ -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()",
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]