United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6480504 java.util.jar.JarOutputStream incorrectly sets 'extra' field
JDK-6480504 : java.util.jar.JarOutputStream incorrectly sets 'extra' field

Details
Type:
Bug
Submit Date:
2006-10-11
Status:
Closed
Updated Date:
2011-03-07
Project Name:
JDK
Resolved Date:
2011-03-07
Component:
core-libs
OS:
generic
Sub-Component:
java.util.jar
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:

Related Reports
Backport:
Relates:

Sub Tasks

Description
java.util.jar.JarOutputStream.putNextEntry has the order of arguments reversed in arraycopying the extra field.  If a JarEntry has client-provided extra data, it will be lost.

                                    

Comments
EVALUATION

It's not nice to lose client data.
                                     
2006-10-11



Hardware and Software, Engineered to Work Together