PeterAlfredLee commented on a change in pull request #113:
URL: https://github.com/apache/commons-compress/pull/113#discussion_r552349616
##########
File path: src/test/java/org/apache/commons/compress/archivers/TarTestCase.java
##########
@@ -335,6 +482,18 @@ public void testCOMPRESS178() throws Exception {
in.close();
}
+ @Test
+ public void testTarFileCOMPRESS178() throws Exception {
+ final File input = getFile("COMPRESS-178.tar");
+ try (final TarFile tarFile = new TarFile(input)) {
+ // Compared to the TarArchiveInputStream all entries are read when
instantiating the tar file
+ fail("Expected IOException");
+ } catch (final IOException e) {
Review comment:
I prefer to leave it as is.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]