You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2003/08/04 12:31:03 UTC

DO NOT REPLY [Bug 22103] New: - JspC.execute do not close files

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22103>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22103

JspC.execute do not close files

           Summary: JspC.execute do not close files
           Product: Tomcat 5
           Version: 5.0.6
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Jasper2
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: gilles.scokart@axa.be


When there is an error in the JSP file, and the JSP compiler is invoked from an 
ANT script via JspC.execute(), the opened files are not closed.

What seems to happen is that the java output files is created and opened, the 
error in the JSP is detected and an exception is trigered without closing the 
opened files.

That raise problems when the ANT script is called from an IDE (like eclipse) 
that does'nt use a separate JVM to execute it.  In that case, the created empty 
file can not be deleted without closing the IDE.

Is it possible to add a finally clause somewhere to always close all opened 
files, even in case of errors ?

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