/[classpath]/classpath/java/net/URLClassLoader.java
ViewVC logotype

Diff of /classpath/java/net/URLClassLoader.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by cbj, Mon Mar 25 05:12:18 2002 UTC revision 1.5 by mark, Tue Sep 10 20:44:18 2002 UTC
# Line 294  public class URLClassLoader extends Secu Line 294  public class URLClassLoader extends Secu
294    
295                  source = new CodeSource(url, certificates);                  source = new CodeSource(url, certificates);
296              }              }
297              else if (url.getProtocol().equals("file"))
298                {
299                  try
300                    {
301                      String u = url.toExternalForm();
302                      // Skip "file:" and then get canonical directory name.
303                      File f = new File(u.substring(5));
304                      f = f.getCanonicalFile();
305                      url = new URL("file", "", f.getParent());
306                      source = new CodeSource (url, null);
307                    }
308                  catch (IOException ignore)
309                    {
310                    }
311                }
312    
313              // And finally construct the class!              // And finally construct the class!
314              return defineClass(className, classData,              return defineClass(className, classData,

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26