You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@locus.apache.org on 2000/02/08 03:24:14 UTC
cvs commit: jakarta-tomcat/src/share/org/apache/jasper/compiler JspReader.java
mandar 00/02/07 18:24:14
Modified: src/share/org/apache/jasper/compiler JspReader.java
Log:
Debug line number match the actual line number is
the JSP file.
(They are still off by 1 since in programming world
line count starts from 0).
Revision Changes Path
1.11 +6 -0 jakarta-tomcat/src/share/org/apache/jasper/compiler/JspReader.java
Index: JspReader.java
===================================================================
RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/jasper/compiler/JspReader.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- JspReader.java 2000/01/24 05:54:51 1.10
+++ JspReader.java 2000/02/08 02:24:13 1.11
@@ -257,6 +257,12 @@
int len = current.stream.length;
char ch;
+ if (peekChar() == '\n') {
+ current.line++;
+ current.col = 0;
+ }
+ else current.col++;
+
// pure obsfuscated genius!
while ((++current.cursor < len) &&
((ch = current.stream[current.cursor]) != '<')) {