cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject cvs commit: xml-cocoon2/src/org/apache/cocoon/components/language/programming/java Jikes.java
Date Thu, 05 Jul 2001 01:17:41 GMT
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 <i>Jikes</i> Java compiler
    * NOTE: inspired by the Apache Jasper implementation.
    * @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
  - * @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


Mime
View raw message