ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From co...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/loader AntClassLoader2.java
Date Sun, 26 Jan 2003 22:59:05 GMT
conor       2003/01/26 14:59:05

  Modified:    src/main/org/apache/tools/ant/loader AntClassLoader2.java
  Log:
  Fix possible ClassCastExceptions due to use of ZipEntry rather than JarEntry
  
  Revision  Changes    Path
  1.3       +2 -2      jakarta-ant/src/main/org/apache/tools/ant/loader/AntClassLoader2.java
  
  Index: AntClassLoader2.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/loader/AntClassLoader2.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -w -u -r1.2 -r1.3
  --- AntClassLoader2.java	25 Jan 2003 15:03:16 -0000	1.2
  +++ AntClassLoader2.java	26 Jan 2003 22:59:05 -0000	1.3
  @@ -66,7 +66,7 @@
   import java.util.jar.Attributes.Name;
   import java.net.URL;
   import java.net.MalformedURLException;
  -import java.util.zip.ZipEntry;
  +import java.util.jar.JarEntry;
   import java.util.StringTokenizer;
   import org.apache.tools.ant.util.FileUtils;
   
  @@ -277,7 +277,7 @@
           try {
               jarFile = new JarFile(pathComponent);
               manifestStream 
  -                = jarFile.getInputStream(new ZipEntry("META-INF/MANIFEST.MF"));
  +                = jarFile.getInputStream(new JarEntry("META-INF/MANIFEST.MF"));
   
               if (manifestStream == null) {
                   return;
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message