Return-Path: Delivered-To: apmail-xml-cocoon-cvs-archive@xml.apache.org Received: (qmail 54659 invoked by uid 500); 5 Jul 2001 01:17:42 -0000 Mailing-List: contact cocoon-cvs-help@xml.apache.org; run by ezmlm Precedence: bulk Reply-To: cocoon-dev@xml.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list cocoon-cvs@xml.apache.org Received: (qmail 54650 invoked by uid 500); 5 Jul 2001 01:17:42 -0000 Delivered-To: apmail-xml-cocoon2-cvs@apache.org Date: 5 Jul 2001 01:17:41 -0000 Message-ID: <20010705011741.54646.qmail@apache.org> From: vgritsenko@apache.org To: xml-cocoon2-cvs@apache.org Subject: cvs commit: xml-cocoon2/src/org/apache/cocoon/components/language/programming/java Jikes.java vgritsenko 01/07/04 18:17:41 Modified: src/org/apache/cocoon/components/language/programming/java Tag: cocoon_20_branch Jikes.java Log: Fix index out of range exception Revision Changes Path No revision No revision 1.1.1.1.2.2 +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.1.1.1.2.1 retrieving revision 1.1.1.1.2.2 diff -u -r1.1.1.1.2.1 -r1.1.1.1.2.2 --- Jikes.java 2001/07/02 20:40:39 1.1.1.1.2.1 +++ Jikes.java 2001/07/05 01:17:41 1.1.1.1.2.2 @@ -25,7 +25,7 @@ * This class wraps IBM's Jikes Java compiler * NOTE: inspired by the Apache Jasper implementation. * @author Stefano Mazzocchi - * @version $Revision: 1.1.1.1.2.1 $ $Date: 2001/07/02 20:40:39 $ + * @version $Revision: 1.1.1.1.2.2 $ $Date: 2001/07/05 01:17:41 $ * @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: webmaster@xml.apache.org To unsubscribe, e-mail: cocoon-cvs-unsubscribe@xml.apache.org For additional commands, e-mail: cocoon-cvs-help@xml.apache.org