incubator-yoko-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r556689 - /incubator/yoko/trunk/bindings/src/main/java/org/apache/yoko/bindings/corba/utils/CorbaUtils.java
Date Mon, 16 Jul 2007 18:32:47 GMT
Author: bravi
Date: Mon Jul 16 11:32:46 2007
New Revision: 556689

URL: http://svn.apache.org/viewvc?view=rev&rev=556689
Log:
[YOKO-397] - Closing an handle on the FileReader when reading an IOR.

Modified:
    incubator/yoko/trunk/bindings/src/main/java/org/apache/yoko/bindings/corba/utils/CorbaUtils.java

Modified: incubator/yoko/trunk/bindings/src/main/java/org/apache/yoko/bindings/corba/utils/CorbaUtils.java
URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/bindings/src/main/java/org/apache/yoko/bindings/corba/utils/CorbaUtils.java?view=diff&rev=556689&r1=556688&r2=556689
==============================================================================
--- incubator/yoko/trunk/bindings/src/main/java/org/apache/yoko/bindings/corba/utils/CorbaUtils.java
(original)
+++ incubator/yoko/trunk/bindings/src/main/java/org/apache/yoko/bindings/corba/utils/CorbaUtils.java
Mon Jul 16 11:32:46 2007
@@ -473,8 +473,9 @@
             String ior = reader.readLine();
             if (ior == null) {
                 throw new RuntimeException("Invalid object reference found in file " + url);
-            }
+            }            
             result = orb.string_to_object(ior.trim());
+            reader.close();            
         } catch (java.io.IOException ex) {
             throw new RuntimeException(ex);
         }



Mime
View raw message