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=4282>.
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=4282

On JSP compile deprecation "Note:" line throws exception in Compiler.java

           Summary: On JSP compile deprecation "Note:" line throws exception
                    in Compiler.java
           Product: Tomcat 4
           Version: 4.0.1 Final
          Platform: PC
        OS/Version: Windows 9x
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Jasper
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


In Compiler.java in java method getJspLineErrors for compiler message lines 
like:
Note: C:\ari\cca\tomcat40\work\localhost\_\cca\ApprovalCallRes$jsp.java uses or 
overrides a deprecated API.  Recompile with "-deprecation" for details.

the following line throws an exception 
              int lineNr = Integer.parseInt( nr );
as there is are two ":" in the compile message but no line number so it 
thinks "C" (as in c:\ ) is a number and tried to do a parse int.

Enclosing the above mentioned line in try/catch block and ignoring the error 
fixes the problem.

Reply via email to