RFR: 8326096: Deprecate getTotalIn, getTotalOut methods of java.util.zip.Inflater, java.util.zip.Deflater [v4]

Alan Bateman alanb at openjdk.org
Tue Feb 20 14:25:54 UTC 2024


On Tue, 20 Feb 2024 13:29:28 GMT, Eirik Bjørsnøs <eirbjo at openjdk.org> wrote:

> Should these methods specify return values when the number of processed bytes exceed Integer.MAX_VALUE?

I think they should, otherwise it's not clear if the return value is clamped at Integer.MAX_VALUE. The wording can make it clear that the return value is useless in cases where the total exceeds Integer.MAX_VALUE.

(The wording that you have for the deprecation text looks fine).

-------------

PR Comment: https://git.openjdk.org/jdk/pull/17919#issuecomment-1954323561


More information about the core-libs-dev mailing list