tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1634732 - /tomcat/trunk/java/org/apache/jasper/compiler/JspReader.java
Date Mon, 27 Oct 2014 23:11:34 GMT
Author: markt
Date: Mon Oct 27 23:11:34 2014
New Revision: 1634732

URL: http://svn.apache.org/r1634732
Log:
Whoops. Correct the logic.

Modified:
    tomcat/trunk/java/org/apache/jasper/compiler/JspReader.java

Modified: tomcat/trunk/java/org/apache/jasper/compiler/JspReader.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/jasper/compiler/JspReader.java?rev=1634732&r1=1634731&r2=1634732&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/jasper/compiler/JspReader.java (original)
+++ tomcat/trunk/java/org/apache/jasper/compiler/JspReader.java Mon Oct 27 23:11:34 2014
@@ -269,9 +269,9 @@ class JspReader {
     int peekChar(int readAhead) {
         int target = current.cursor + readAhead;
         if (target < current.stream.length) {
-            return -1;
+            return current.stream[target];
         }
-        return current.stream[target];
+        return -1;
     }
 
     Mark mark() {



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message