commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henri Yandell <flame...@gmail.com>
Subject Re: [compress] Require Java5?
Date Thu, 21 Jul 2011 07:50:31 GMT
I think the argument is the other way. You should be explaining why
you wouldn't simply just move to Java 5.

+1 to JDK 1.5 minimum.

Hen

On Wed, Jul 20, 2011 at 9:04 PM, Stefan Bodewig <bodewig@apache.org> wrote:
> Hi,
>
> no, this is not about generics or enums or ...
>
> This time it is methods added in the classlib, in particular
> java.util.zip.Inflater#getBytesRead and friends which return longs
> rather than ints that are returned by getTotalIn.
>
> Since ZIP entry size is an unsigned four byte int even without Zip64
> support it simply doesn't fit into an int and some bugs cannot properly
> be fixed by using the Java4 method. (COMPRESS-129 is one).
>
> Things will become worse with Zip64 as we'd need unsigned longs but I'm
> willing to accept that as theoretical cases.
>
> The alternative would be to use some reflection magic inside the ZIP
> package (which I'm willing to do).
>
> Stefan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message