classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] Re: Verifying zip entries that don't exist in the JarFile


From: Bryce McKinlay
Subject: [cp-patches] Re: Verifying zip entries that don't exist in the JarFile
Date: Mon, 21 Feb 2005 15:19:48 -0500
User-agent: Mozilla Thunderbird 1.0 (X11/20041206)

Mark Wielaard wrote:

Hi,

Sometimes a jar signature file contains signatures for .class files not
included in the jar file itself (which is probably a packaging problem).
This patch handles such situations gracefully.

2005-02-21  Mark Wielaard  <address@hidden>

       * java/util/jar/JarFile.java (verifyHashes): Check whether ZipEntry
       exists.

Without this patch we would throw a NullPointerException in the middle
of loading the jar file. Found by playing a bit with Netx a GPLed JNLP
implementation which kind of works (unfortunately only when turning off
the build in SecurityManager which goes into some infinite loop, which
need investigation). Some of the simpler jnlp examples actually start up
with a recent gij.

OK to commit?
OK.

Not a problem with your patch, but shouldn't DEBUG variable in JarFile.java should be final?

Bryce





reply via email to

[Prev in Thread] Current Thread [Next in Thread]