[jboss-cvs] jboss-seam/src/main/org/jboss/seam/init ...

Shane Bryzak sbryzak at redhat.com
Tue Oct 16 21:10:09 EDT 2007


  User: sbryzak2
  Date: 07/10/16 21:10:09

  Modified:    src/main/org/jboss/seam/init  Initialization.java
  Log:
  JBSEAM-2118
  
  Revision  Changes    Path
  1.194     +15 -4     jboss-seam/src/main/org/jboss/seam/init/Initialization.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Initialization.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/init/Initialization.java,v
  retrieving revision 1.193
  retrieving revision 1.194
  diff -u -b -r1.193 -r1.194
  --- Initialization.java	14 Oct 2007 03:51:44 -0000	1.193
  +++ Initialization.java	17 Oct 2007 01:10:09 -0000	1.194
  @@ -829,6 +829,8 @@
         InputStream stream = Resources.getResourceAsStream(resource, servletContext);
         if (stream != null)
         {
  +         try
  +         {
            log.info("reading properties from: " + resource);
            try
            {
  @@ -839,6 +841,15 @@
               log.error("could not read " + resource, ioe);
            }
         }
  +         finally
  +         {
  +            try
  +            {
  +               stream.close();
  +            }
  +            catch (IOException ex) { } // swallow
  +         }
  +      }
         else
         {
            log.debug("not found: " + resource);
  
  
  



More information about the jboss-cvs-commits mailing list