ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 33310] - Zip task can't zip files larger than 2GB (2^31 bytes int limit reached) : "invalid entry size"
Date Mon, 31 Jan 2005 10:22:41 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33310>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33310





------- Additional Comments From kevin.jackson@it.fts-vn.com  2005-01-31 11:22 -------
(In reply to comment #2)
> Well i thought of the same patch, but then you'll have the same bug for files 
> larger then 4GB :(
> The size won't be negative, but won't be the good neither, no ?

Hmm, I suppose so.
Just reading the docs...

setSize

public void setSize(long size)

    Sets the uncompressed size of the entry data.

    Parameters:
        size - the uncompressed size in bytes 
    Throws:
        IllegalArgumentException - if the specified size is less than 0 or
greater than 0xFFFFFFFF bytes
    See Also:
        getSize()

The ZipEntry class doesn't support sizes larger than 4Gb (FFFFFFFF -> Dec), so
the patch will provide support for files upto this limit imposed by the API, but
not larger files.



-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message