ASF Bugzilla – Attachment 11499 Details for
Bug 28603
JspC Ant task does not detect errors on a second compile
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Set 'writer' to NULL, so it won't be closed again in finally
patch.txt (text/plain), 867 bytes, created by
Jan Luehe
on 2004-05-10 16:27:28 UTC
(
hide
)
Description:
Set 'writer' to NULL, so it won't be closed again in finally
Filename:
MIME Type:
Creator:
Jan Luehe
Created:
2004-05-10 16:27:28 UTC
Size:
867 bytes
patch
obsolete
>Index: Compiler.java >=================================================================== >RCS file: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Compiler.java,v >retrieving revision 1.82 >diff -u -r1.82 Compiler.java >--- Compiler.java 29 Apr 2004 18:33:50 -0000 1.82 >+++ Compiler.java 10 May 2004 16:20:45 -0000 >@@ -258,14 +258,22 @@ > } > > } catch (Exception e) { >+ if (writer != null) { >+ try { >+ writer.close(); >+ writer = null; >+ } catch (Exception e1) { >+ // do nothing >+ } >+ } > // Remove the generated .java file >- new File(javaFileName).delete(); >+ new File(javaFileName).delete(); > throw e; > } finally {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 28603
:
11444
|
11489
| 11499