Changeset 4389 for trunk/src/core/net


Ignore:
Timestamp:
Aug 12, 2008, 12:52:52 PM (15 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

    r4323 r4389  
    3636import java.util.jar.Attributes;
    3737import java.io.File;
    38 import java.io.FileNotFoundException;
    3938import java.io.InputStream;
    4039import java.io.IOException;
     
    308307    if (!file.exists() || !file.isFile())
    309308    {
    310       throw new FileNotFoundException("JAR file not found: " + file);
     309      log.warn("File not found: " + file);
     310      return;
    311311    }
    312312    JarFile jarFile = new JarFile(file);
Note: See TracChangeset for help on using the changeset viewer.