This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 45469

Summary: jsp expression split to more lines causes debugging problems
Product: javaee Reporter: L Martinek <lmartinek>
Component: DebuggerAssignee: Martin Grebac <mgrebac>
Status: CLOSED FIXED    
Severity: blocker Keywords: TOMCAT
Priority: P3    
Version: 4.x   
Hardware: PC   
OS: Windows ME/2000   
Issue Type: DEFECT Exception Reporter:

Description L Martinek 2004-06-23 14:28:11 UTC
If you split expression to more lines, debugging
of following lines is shifted.

Create new JSP and put following code to it:

==================================

<%= "first line" +
    "second line" +
    "third line"%>

<%! private String mymethod() {
       return "mymethod";
    } %>
<%-- put breakpoint here --%>   
<% out.println(mymethod()); 
   int i = 10;
   i = 20;
%>
    

<%= i++ %>

<%= i++ %>


==================================

Put breakpoint to marked line and start debugger. 
Add variable i to watches.
Trace JSP by pressing F7. 
Note that you will jump to mymethod() 2 lines down
than it should be. Also variable i is changed late.
Comment 1 Martin Grebac 2004-07-23 12:12:14 UTC
tomcat smap mapping bug:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=30291
Comment 2 Martin Grebac 2004-07-27 09:54:14 UTC
I verified the bug has been fixed in Tomcat dev build. Need to wait
for a new release to update the bundled Tomcat.
Comment 3 Martin Grebac 2004-08-31 17:01:25 UTC
tomcat 5.0.28 has been integrated, so this should be fixed in trunk now
Comment 4 L Martinek 2004-09-02 15:24:00 UTC
verified