commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tcu...@apache.org
Subject svn commit: r700568 - /commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/bytecode/transformation/bcel/BcelClassTransformer.java
Date Tue, 30 Sep 2008 20:19:20 GMT
Author: tcurdt
Date: Tue Sep 30 13:19:20 2008
New Revision: 700568

URL: http://svn.apache.org/viewvc?rev=700568&view=rev
Log:
https://issues.apache.org/jira/browse/SANDBOX-214


Modified:
    commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/bytecode/transformation/bcel/BcelClassTransformer.java

Modified: commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/bytecode/transformation/bcel/BcelClassTransformer.java
URL: http://svn.apache.org/viewvc/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/bytecode/transformation/bcel/BcelClassTransformer.java?rev=700568&r1=700567&r2=700568&view=diff
==============================================================================
--- commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/bytecode/transformation/bcel/BcelClassTransformer.java
(original)
+++ commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/bytecode/transformation/bcel/BcelClassTransformer.java
Tue Sep 30 13:19:20 2008
@@ -157,6 +157,12 @@
             e2.printStackTrace();
         } catch (IOException e2) {
             e2.printStackTrace();
+        } finally {
+        	try {
+				is.close();
+			} catch (IOException e) {
+				e.printStackTrace();
+			}
         }
         
         Repository.addClass(javaClazz);
@@ -218,7 +224,7 @@
         if(debug) {
             dump(newClass, ".rewritten");
         }
-
+        
         return changed;
     }
 
@@ -240,7 +246,7 @@
             out.flush();
         } catch (final IOException e) {
             e.printStackTrace();
-
+        } finally {
             try {
                 if (out != null) {
                     out.close();
@@ -249,7 +255,7 @@
                 log.error(e1.getMessage(), e1);
             } finally {
                 out = null;
-            }
+            }        	
         }
 
         try {
@@ -261,7 +267,7 @@
             v.start();
         } catch (final Exception e) {
             e.printStackTrace();
-
+        } finally {
             try {
                 if (out != null) {
                     out.close();
@@ -270,7 +276,7 @@
                 log.error(e1.getMessage(), e1);
             } finally {
                 out = null;
-            }
+            }        	
         }
     }
 



Mime
View raw message