[ https://issues.apache.org/jira/browse/COMPRESS-332?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brett Okken updated COMPRESS-332: --------------------------------- Attachment: CommonsTest.java These tests use the xerial snappy-java library to generate compressed content. <dependency> <groupId>org.xerial.snappy</groupId> <artifactId>snappy-java</artifactId> </dependency> > FramedSnappyCompressorInputStream.read returns invalid value at end of stream. > ------------------------------------------------------------------------------ > > Key: COMPRESS-332 > URL: https://issues.apache.org/jira/browse/COMPRESS-332 > Project: Commons Compress > Issue Type: Bug > Components: Compressors > Affects Versions: 1.10 > Reporter: Brett Okken > Attachments: CommonsTest.java > > > FramedSnappyCompressorInputStream.read() returns 0 when the end of stream has > been reached rather than -1. > It appears that this may be caused by > SnappyCompressorInputStream.read(byte[], int, int) returning 0 instead of -1 > at the end of stream when the exact number of bytes have been read. -- This message was sent by Atlassian JIRA (v6.3.4#6332)