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=13004>. 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=13004 Error in page compilation when comment is place at the end of scriptlet and the scriptlet is the last line in the jsp page. Summary: Error in page compilation when comment is place at the end of scriptlet and the scriptlet is the last line in the jsp page. Product: Tomcat 4 Version: 4.1.0 Platform: All OS/Version: All Status: NEW Severity: Normal Priority: Other Component: Jasper AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] The following is compiled into java code incorrectly causing the javac compiler to blowup: ----BEGIN-(Make this a jsp file between begin and end)-- Test: <% out.println("bug!"); //This prints out a bug%> ----END----- The jsp compiler needs to put a newline in the java source after the closing jsp scriptlet. Currently this causes the ending catch block to be commented out. The following will allow the page to compile and run, however the output will not be correct. ----BEGIN--- Test: <% out.println("bug!"); //This prints out a bug%> ----END----- The additional line is placed ( which would be an out.print("\n"); ) on the same line as the comment. This pushes the catch down one line. Since the out.print is commented out it is never executed, however hardly anyone would miss the newline -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>