JDK-6236981 : Jar compression data incorrect if input file over 2GB
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util.jar
  • Affected Version: solaris-nevada
  • Priority: P3
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: generic
  • CPU: generic
  • Submitted: 2005-03-07
  • Updated: 2010-04-02
  • Resolved: 2006-04-28
Related Reports
Relates :  
Description
When you use jar to compress a file voer 2GB in size, it reports the input file size incorrectly, and this the compression ration incorrectly.
# jar -cvMf base_10g.cpio.jar base_10g.cpio                         
adding: base_10g.cpio(in = -919863296) (out= 880247831)(deflated 195%)
#
In this case, the input file was 3.1 GB.
The output file seems to be correct.
		
###@###.### 2005-03-07 18:35:21 GMT

Comments
EVALUATION Closing since unable to reproduce, and have not gotten more info from submitter in over 2 weeks.
28-04-2006

EVALUATION We tried to fix all of these sorts of problems with 4418997: Files between 2 Gb and 4Gb (excluded) are not accepted in a zip file. but may have missed some.
06-04-2006

WORK AROUND Ignore the message. Use another utility, such as gzip, if you don't trust jar. ###@###.### 2005-03-07 18:35:21 GMT
07-03-2005