tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r505344 - /tomcat/jasper/tc5.5.x/src/share/org/apache/jasper/compiler/JDTCompiler.java
Date Fri, 09 Feb 2007 16:13:22 GMT
Author: pero
Date: Fri Feb  9 08:13:21 2007
New Revision: 505344

URL: http://svn.apache.org/viewvc?view=rev&rev=505344
Log:
Hups, must close the buffer output before underlying stream. Sorry!

Modified:
    tomcat/jasper/tc5.5.x/src/share/org/apache/jasper/compiler/JDTCompiler.java

Modified: tomcat/jasper/tc5.5.x/src/share/org/apache/jasper/compiler/JDTCompiler.java
URL: http://svn.apache.org/viewvc/tomcat/jasper/tc5.5.x/src/share/org/apache/jasper/compiler/JDTCompiler.java?view=diff&rev=505344&r1=505343&r2=505344
==============================================================================
--- tomcat/jasper/tc5.5.x/src/share/org/apache/jasper/compiler/JDTCompiler.java (original)
+++ tomcat/jasper/tc5.5.x/src/share/org/apache/jasper/compiler/JDTCompiler.java Fri Feb  9
08:13:21 2007
@@ -394,17 +394,17 @@
                         } catch (IOException ioe) {
                             log.error("Compilation error", ioe);
                         } finally {
-                            if (fout != null)
+                            if (bos != null)
                                 try {
-                                    fout.close();
+                                    bos.close();
                                 } catch (IOException ignore) {
                                 }
-                            if (bos != null)
+                            if (fout != null)
                                 try {
-                                    bos.close();
+                                    fout.close();
                                 } catch (IOException ignore) {
                                 }
-                        }
+                       }
                     }
                 }
             }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message