vgritsenko    01/07/05 14:01:41

  Modified:    src/org/apache/cocoon/components/language/programming/java
                        Tag: cocoon_20_branch Jikes.java
  Log:
  another small fix
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.1.1.2.4 +5 -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.3
  retrieving revision 1.1.1.1.2.4
  diff -u -r1.1.1.1.2.3 -r1.1.1.1.2.4
  --- Jikes.java        2001/07/05 17:57:54     1.1.1.1.2.3
  +++ Jikes.java        2001/07/05 21:01:37     1.1.1.1.2.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.1.1.1.2.3 $ $Date: 2001/07/05 17:57:54 $
  + * @version $Revision: 1.1.1.1.2.4 $ $Date: 2001/07/05 21:01:37 $
    * @since 2.0
    */
   
  @@ -182,8 +182,8 @@
                   // Continuation of previous error starts with ' '
                   if (line.length() > 0 && line.charAt(0) != ' ')
                       break;
  -                buffer.append(line);
                   buffer.append('\n');
  +                buffer.append(line);
               }
   
               // if error is found create the vector
  @@ -226,6 +226,9 @@
           if ("".equals(message)) {
               type = tokens.nextToken().trim().toLowerCase();
               message = tokens.nextToken("\n").substring(1).trim();
  +
  +            while (tokens.hasMoreTokens())
  +                message += "\n" + tokens.nextToken();
           }
   
           return new CompilerError(file, type.equals("error"), startline, 
startcolumn, endline, endcolumn, message);
  
  
  

----------------------------------------------------------------------
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