harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r381376 - /incubator/harmony/enhanced/classlib/trunk/modules/archive/src/main/java/java/util/jar/JarFile.java
Date Mon, 27 Feb 2006 16:46:59 GMT
Author: tellison
Date: Mon Feb 27 08:46:54 2006
New Revision: 381376

URL: http://svn.apache.org/viewcvs?rev=381376&view=rev
Log:
Don't pre-read the JAR file manifest

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/archive/src/main/java/java/util/jar/JarFile.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/archive/src/main/java/java/util/jar/JarFile.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/archive/src/main/java/java/util/jar/JarFile.java?rev=381376&r1=381375&r2=381376&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/archive/src/main/java/java/util/jar/JarFile.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/archive/src/main/java/java/util/jar/JarFile.java
Mon Feb 27 08:46:54 2006
@@ -293,8 +293,6 @@
 								.regionMatches(true, entryName.length() - 4,
 										".RSA", 0, 4))) {
 					signed = true;
-					if (manifest == null)
-						verifier.setManifest(getManifest());
 					InputStream is = super.getInputStream(entry);
 					byte[] buf = new byte[is.available()];
 					is.read(buf, 0, buf.length);
@@ -320,6 +318,7 @@
 		if (manifestEntry != null)
 			getManifest();
 		if (verifier != null) {
+			verifier.setManifest(getManifest());
 			if (verifier.readCertificates()) {
 				verifier.removeMetaEntries();
 				if (manifest != null)



Mime
View raw message