DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=42435>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42435 Summary: Insufficient error report from Jasper Product: Tomcat 5 Version: 5.0.23 Platform: Other OS/Version: other Status: NEW Severity: normal Priority: P2 Component: Jasper AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] The method DefaultErrorHandler.javacError(JavacErrorDetail[]) contains the following code: for (int i=0; i < details.length; i++) { if (details[i].getJspBeginLineNumber() >= 0) { ... } } Basically, this means, that error details are skipped, if the line number is -1. Unfortunately, there are cases, when the compiler reports events with -1. I propose, to change this code to look like in jasper 6: for (int i=0; i < details.length; i++) { if (details[i].getJspBeginLineNumber() >= 0) { args = new Object[] { new Integer(details[i].getJspBeginLineNumber()), details[i].getJspFileName() }; buf.append(Localizer.getMessage("jsp.error.single.line.number", args)); buf.append("\n"); } buf.append( Localizer.getMessage("jsp.error.corresponding.servlet")); buf.append(details[i].getErrorMessage()); buf.append("\n\n"); } -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]