-
Enhancement
-
Resolution: Fixed
-
P4
-
None
-
None
-
b14
The methods getTotalIn and getTotalOut return int, so they cannot represent processing of more than Integer.MAX_VALUE of compressed / uncompressed data correctly.
Java 5 introduced the new long-returning methods getBytesRead and getBytesWritten as a replacement.
getTotalIn and getTotalOut were never officially deprecated. Also, their current behavior (casting to int) was never specified in the API documentation.
We should formally deprecate these methods now. It would also make sense to clearly specify their behavior for the case where their value exceeds Integer.MAX_VALUE.
Java 5 introduced the new long-returning methods getBytesRead and getBytesWritten as a replacement.
getTotalIn and getTotalOut were never officially deprecated. Also, their current behavior (casting to int) was never specified in the API documentation.
We should formally deprecate these methods now. It would also make sense to clearly specify their behavior for the case where their value exceeds Integer.MAX_VALUE.
- csr for
-
JDK-8326326 Deprecate getTotalIn, getTotalOut methods of java.util.zip.Inflater, java.util.zip.Deflater
- Closed
- relates to
-
JDK-8326099 GZIPOutputStream should use Deflater.getBytesRead() instead of Deflater.getTotalIn()
- Resolved
-
JDK-8326100 DeflaterDictionaryTests should use Deflater.getBytesWritten instead of Deflater.getTotalOut
- Resolved