tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 23502] New: - Incorrect path in generated SMAP file entries
Date Mon, 29 Sep 2003 21:02:14 GMT
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=23502>.
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=23502

Incorrect path in generated SMAP file entries

           Summary: Incorrect path in generated SMAP file entries
           Product: Tomcat 5
           Version: 5.0.12
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Jasper
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: jph@us.ibm.com


One of the new features of Jasper in Tomcat 5 is that it attaches a "Source
Map" attribute to class files to describe the file name and line number
mapping from a JSP source file to the generated Java source file.

The SMAP that I see in the class files generated by Jasper (5.0.12 beta)
has a problem:

In the "*F" section, there's a pair of lines that defines the JSP file.
The first line is of the form "+ id source-name", where "id" is a unique
identifier and "source-name" is the name of the JSP file.  The source name
created by Jasper contains path information, but according to JSR-045, it
should be without path information.

For example, when running the num/numguess.jsp program, the following lines
are generated:

+ 0 /num/numguess.jsp
num/numguess.jsp

but this should be

+ 0 numguess.jsp
num/numguess.jsp

Mime
View raw message