Please review: 7131266: JDK 7 pack200 + unpack200 fails on jaxb-xjc.jar

Kumar Srinivasan kumar.x.srinivasan at oracle.COM
Fri Feb 10 18:37:30 UTC 2012


Please review fix for :

The gist of the problem being addressed, the specimen jar contains
two versions of class file implementations with the same package names,
this tends to confuse the pack200 mechanism causing it to fire asserts.

This fixes two issues:
1. Made the equals method more stringent to ensure the CP tag is compared
     correctly [ this can happen for MemberEntry which can have Fields, 
Methods and
     InterfaceMethods,]  and some minor cleanups.

2. A class file not playing nice, ie. package name does not reflect the 
     directory structure they are in,  will not be considered for 
compression, instead
     these will be passed through "as-is".



More information about the core-libs-dev mailing list