Changeset 4321


Ignore:
Timestamp:
May 29, 2008, 3:02:14 PM (14 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #1041: ZipException?: error in opening zip file in JarClassLoader? if a JAR file given on class path doesn't exists

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/core/net/sf/basedb/util/JarClassLoader.java

    r4195 r4321  
    6767{
    6868
     69  private static final org.apache.log4j.Logger log =
     70    org.apache.log4j.LogManager.getLogger("net.sf.basedb.util.JarClassLoader");
     71 
    6972  /**
    7073    A map of all loaded class loaders.
     
    265268    throws IOException
    266269  {
     270    if (!file.exists() || !file.isFile())
     271    {
     272      log.warn("File not found: " + file);
     273      return;
     274    }
    267275    JarFile jarFile = new JarFile(file);
    268276    Enumeration<JarEntry> entries = jarFile.entries();
Note: See TracChangeset for help on using the changeset viewer.