Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Versioning Java Applications



Peter Molettiere wrote:

>I'm curious as to why you say that comparing jars won't work. If the jars
>have [different] contents, they will produce different hashes or checksums. If
>they have the same contents, they'll produce the same checksum.

Jars include the mod-date of the file in the zip-entry.  Two jars built
from identical source, each made from a clean build, will reflect two
different sets of mod-dates (the time of compilation).  Or the compression
could be done in a different way each time, or the jar could have been
constructed differently (there are various equivalent internal structures).
Thus, two jar-files can be different, yet the contents can be identical.
Try it.

  -- GG


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.