svn commit: r170496 - /jakarta/bcel/trunk/src/java/org/apache/bcel/util/ClassPath.java

[email protected]
Newsgroups gmane.comp.jakarta.bcel.devel
Message-ID <[email protected]>
Author: tcurdt
Date: Mon May 16 18:01:26 2005
New Revision: 170496

URL: http://svn.apache.org/viewcvs?rev=170496&view=rev
Log:
fixed a "." vs "/" bug reported by Bjorn Blowqvist ([email protected]),
organized imports,
formatting


Modified:
    jakarta/bcel/trunk/src/java/org/apache/bcel/util/ClassPath.java

Modified: jakarta/bcel/trunk/src/java/org/apache/bcel/util/ClassPath.java
URL: http://svn.apache.org/viewcvs/jakarta/bcel/trunk/src/java/org/apache/bcel/util/ClassPath.java?rev=170496&r1=170495&r2=170496&view=diff
==============================================================================
--- jakarta/bcel/trunk/src/java/org/apache/bcel/util/ClassPath.java (original)
+++ jakarta/bcel/trunk/src/java/org/apache/bcel/util/ClassPath.java Mon May 16 18:01:26 2005
@@ -17,9 +17,18 @@
 package org.apache.bcel.util;
 
 
-import java.util.*;
-import java.util.zip.*;
-import java.io.*;
+import java.io.DataInputStream;
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FilenameFilter;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.StringTokenizer;
+import java.util.zip.ZipEntry;
+import java.util.zip.ZipFile;
 
 /**
  * Responsible for loading (class) files from the CLASSPATH. Inspired by
@@ -157,7 +166,7 @@
    * @return input stream for class
    */
   public InputStream getInputStream(String name) throws IOException {
-    return getInputStream(name, ".class");
+    return getInputStream(name.replace('.','/'), ".class");
   }
     
   /**
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.