vgritsenko    01/07/05 10:56:45

  Modified:    src/org/apache/cocoon/components/language/programming/java
                        Jikes.java
  Log:
  fix errors in error parsing code
  
  Revision  Changes    Path
  1.4       +7 -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.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Jikes.java        2001/07/05 01:15:46     1.3
  +++ Jikes.java        2001/07/05 17:56:45     1.4
  @@ -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.3 $ $Date: 2001/07/05 01:15:46 $
  + * @version $Revision: 1.4 $ $Date: 2001/07/05 17:56:45 $
    * @since 2.0
    */
   
  @@ -176,8 +176,12 @@
               // all other space-starting lines are one error
               while (true) {
                   line = input.readLine();
  -                if (line == null || line.length() == 0 || line.charAt(0) != ' ')
  +                // EOF
  +                if (line == null)
                       break;
  +                // Continuation of previous error starts with ' '
  +                if (line.length() > 0 && line.charAt(0) != ' ')
  +                    break;
                   buffer.append(line);
                   buffer.append('\n');
               }
  @@ -213,6 +217,7 @@
               endline = Integer.parseInt(tokens.nextToken());
               endcolumn = Integer.parseInt(tokens.nextToken());
           } catch (Exception e) {
  +            // FIXME: VG: This is not needed anymore?
               message = "Please ensure that you have your JDK's rt.jar listed in your 
classpath. Jikes needs it to operate.";
               type="error";
               getLogger().error(message, e);
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to