Changeset 6943


Ignore:
Timestamp:
09/15/10 07:08:05 (9 years ago)
Author:
callan
Message:

Solution to potential service factory file handle leak. (Fixes #561)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/common/src/loci/common/services/ServiceFactory.java

    r6881 r6943  
    2424package loci.common.services; 
    2525 
     26import java.io.IOException; 
    2627import java.io.InputStream; 
    2728import java.lang.reflect.Constructor; 
     
    8788    } catch (Throwable t) { 
    8889      throw new DependencyException(t); 
     90    } 
     91    finally { 
     92      try { 
     93        stream.close(); 
     94      } 
     95      catch (IOException e) { 
     96        LOGGER.warn("Error closing properties file stream.", e); 
     97      } 
    8998    } 
    9099    Set<Entry<Object, Object>> entries = properties.entrySet(); 
Note: See TracChangeset for help on using the changeset viewer.