JarDiff errors

Hi,

I was testing the Version-based downloading using the JnlpDownloadServlet. Downloading initial version worked fine. I then wanted to test the jardiff functionality, so I tried copying one jar file, x__V1.0.jar to x__V1.1.jar. The files are identical in size. When the servlet tries to generate a JarDiff, it actually thinks it finds some differences. This by itself wasn't a huge deal, except that the web start client barfs because it tries to apply a jar diff that contains some identical files to what it already has...

This lead me to run a JarDiff manually on these two files. I also turned on debug messages, -debug. The debug messages clearly show errors coming from the comparison of the two Jar files. It looks like the errors are from the JarFile.getEntryEqualTo(origJarFile, fileName) method. It is actually returning the wrong file. It only does this a few times out of a few thousand though. Thus finding about 15 incorrect files out of 2000.

Has anybody else seen anything like this ? Or have any suggestions for things to try ?

Thanks.

[1093 byte] By [jrp] at [2007-9-26 3:44:28]
# 1

I have found several instances where jardiff incorrectly finds jar differences, when the incorrect jardiff file is applied I get exceptions from Web Start.

I have no work around it is unpredictable, and have had to disable version based downloads.

I have reported the problem to Sun.

I have not gotten a response on when it may be fixed.

mmeyer at 2007-6-29 12:24:12 > top of Java-index,Desktop,Deploying...