diff options
author | PJ Fanning <fanningpj@apache.org> | 2020-11-07 09:26:12 +0000 |
---|---|---|
committer | PJ Fanning <fanningpj@apache.org> | 2020-11-07 09:26:12 +0000 |
commit | 90a9288bfc024985dd2a42ea4f319a27bc305ee1 (patch) | |
tree | 506bbbad09159ea9347c318f6e8cdb973ce87577 /src | |
parent | 9e5790d00453160d6072f91989e769bd1c87f30f (diff) | |
download | poi-90a9288bfc024985dd2a42ea4f319a27bc305ee1.tar.gz poi-90a9288bfc024985dd2a42ea4f319a27bc305ee1.zip |
[bug-64879] SXSSFSheet dispose() fails to remove Temporary files for java.io.IOException: No space left on device
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1883170 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r-- | src/multimodule/examples/java9/module-info.class | bin | 929 -> 929 bytes | |||
-rw-r--r-- | src/multimodule/excelant/java9/module-info.class | bin | 293 -> 293 bytes | |||
-rw-r--r-- | src/multimodule/excelant/test9/module-info.class | bin | 293 -> 293 bytes | |||
-rw-r--r-- | src/multimodule/ooxml-lite-agent/java9/module-info.class | bin | 188 -> 188 bytes | |||
-rw-r--r-- | src/multimodule/ooxml-schemas/java9/module-info.class | bin | 2280 -> 2280 bytes | |||
-rw-r--r-- | src/multimodule/ooxml/java9/module-info.class | bin | 2923 -> 2923 bytes | |||
-rw-r--r-- | src/multimodule/ooxml/test9/module-info.class | bin | 3792 -> 3792 bytes | |||
-rw-r--r-- | src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFSheet.java | 10 |
8 files changed, 7 insertions, 3 deletions
diff --git a/src/multimodule/examples/java9/module-info.class b/src/multimodule/examples/java9/module-info.class Binary files differindex 1b5faa4b37..7f1d82fc9e 100644 --- a/src/multimodule/examples/java9/module-info.class +++ b/src/multimodule/examples/java9/module-info.class diff --git a/src/multimodule/excelant/java9/module-info.class b/src/multimodule/excelant/java9/module-info.class Binary files differindex 5218a9bc92..2d75c59c3f 100644 --- a/src/multimodule/excelant/java9/module-info.class +++ b/src/multimodule/excelant/java9/module-info.class diff --git a/src/multimodule/excelant/test9/module-info.class b/src/multimodule/excelant/test9/module-info.class Binary files differindex 5218a9bc92..2d75c59c3f 100644 --- a/src/multimodule/excelant/test9/module-info.class +++ b/src/multimodule/excelant/test9/module-info.class diff --git a/src/multimodule/ooxml-lite-agent/java9/module-info.class b/src/multimodule/ooxml-lite-agent/java9/module-info.class Binary files differindex fb79979654..45ff2cad38 100644 --- a/src/multimodule/ooxml-lite-agent/java9/module-info.class +++ b/src/multimodule/ooxml-lite-agent/java9/module-info.class diff --git a/src/multimodule/ooxml-schemas/java9/module-info.class b/src/multimodule/ooxml-schemas/java9/module-info.class Binary files differindex f2a86deda0..2bbf982025 100644 --- a/src/multimodule/ooxml-schemas/java9/module-info.class +++ b/src/multimodule/ooxml-schemas/java9/module-info.class diff --git a/src/multimodule/ooxml/java9/module-info.class b/src/multimodule/ooxml/java9/module-info.class Binary files differindex fd59cc5611..f88bd8cb64 100644 --- a/src/multimodule/ooxml/java9/module-info.class +++ b/src/multimodule/ooxml/java9/module-info.class diff --git a/src/multimodule/ooxml/test9/module-info.class b/src/multimodule/ooxml/test9/module-info.class Binary files differindex 67874cc31c..c85ff172e4 100644 --- a/src/multimodule/ooxml/test9/module-info.class +++ b/src/multimodule/ooxml/test9/module-info.class diff --git a/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFSheet.java b/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFSheet.java index 5333532c77..9e5e585c73 100644 --- a/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFSheet.java +++ b/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFSheet.java @@ -1908,10 +1908,14 @@ public class SXSSFSheet implements Sheet * @return true if the file was deleted, false if it wasn't. */ boolean dispose() throws IOException { - if (!allFlushed) { - flushRows(); + boolean ret; + try { + if (!allFlushed) { + flushRows(); + } + } finally { + ret = _writer == null || _writer.dispose(); } - return _writer == null || _writer.dispose(); } @Override |