[Top][All Lists]

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

Re: [cp-patches] FYI: signed JAR file support

From: Mark Wielaard
Subject: Re: [cp-patches] FYI: signed JAR file support
Date: Sun, 07 Nov 2004 23:01:08 +0100


On Sun, 2004-11-07 at 21:25, Casey Marshall wrote:
> I've checked in the patch I posted eariler, implementing signed JAR
> file support.

Thanks, very cool. Please write a NEWS entry for this.

When testing with gcj I found that the
JarFile.super.getInputStream(entry) construct made the compiler barf.
This is a bug in gcj. But since we want to be able to compile with gcj
(it is the default compiler) I am checking in this workaround:

2004-11-07  Mark Wielaard  <address@hidden>

        * java/util/jar/ (EntryInputStream): Add actual
        InputStream as argument.
        (getInputStream): Construct a new EntryInputStream with the result of



Index: java/util/jar/
RCS file: /cvsroot/classpath/classpath/java/util/jar/,v
retrieving revision 1.11
diff -u -r1.11
--- java/util/jar/  7 Nov 2004 20:27:47 -0000       1.11
+++ java/util/jar/  7 Nov 2004 21:56:29 -0000
@@ -449,7 +449,7 @@
         if (DEBUG)
           debug("reading and verifying " + entry);
-        return new EntryInputStream(entry);
+        return new EntryInputStream(entry, super.getInputStream(entry));
@@ -875,9 +875,10 @@
     private final MessageDigest[] md;
     private boolean checked;
-    EntryInputStream(final ZipEntry entry) throws IOException
+    EntryInputStream(final ZipEntry entry, final InputStream in)
+      throws IOException
-      super(JarFile.super.getInputStream(entry));
+      super(in);
       this.entry = entry;
       length = entry.getSize();

Attachment: signature.asc
Description: This is a digitally signed message part

reply via email to

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