vgritsenko 01/07/04 18:15:47
Modified: src/org/apache/cocoon/components/language/programming/java
Jikes.java
Log:
Fix index out of range exception
Revision Changes Path
1.3 +3 -2
xml-cocoon2/src/org/apache/cocoon/components/language/programming/java/Jikes.java
Index: Jikes.java
===================================================================
RCS file:
/home/cvs/xml-cocoon2/src/org/apache/cocoon/components/language/programming/java/Jikes.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- Jikes.java 2001/07/02 20:38:10 1.2
+++ Jikes.java 2001/07/05 01:15:46 1.3
@@ -25,7 +25,7 @@
* This class wraps IBM's <i>Jikes</i> Java compiler
* NOTE: inspired by the Apache Jasper implementation.
* @author <a href="mailto:[EMAIL PROTECTED]">Stefano Mazzocchi</a>
- * @version $Revision: 1.2 $ $Date: 2001/07/02 20:38:10 $
+ * @version $Revision: 1.3 $ $Date: 2001/07/05 01:15:46 $
* @since 2.0
*/
@@ -176,7 +176,8 @@
// all other space-starting lines are one error
while (true) {
line = input.readLine();
- if ((line == null) || (line.charAt(0) != ' ')) break;
+ if (line == null || line.length() == 0 || line.charAt(0) != ' ')
+ break;
buffer.append(line);
buffer.append('\n');
}
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]