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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to