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 - jsp expression split to more lines causes debugging problems
Summary: jsp expression split to more lines causes debugging problems
Status: CLOSED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Martin Grebac
URL:
Keywords: TOMCAT
Depends on:
Blocks:
 
Reported: 2004-06-23 14:28 UTC by L Martinek
Modified: 2006-03-24 10:17 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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