vgritsenko    01/07/05 10:57:55

  Modified:    src/org/apache/cocoon/components/language/programming/java
                        Tag: cocoon_20_branch Jikes.java
  Log:
  fix errors in error parsing code
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.1.1.2.3 +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.1.1.1.2.2
  retrieving revision 1.1.1.1.2.3
  diff -u -r1.1.1.1.2.2 -r1.1.1.1.2.3
  --- Jikes.java        2001/07/05 01:17:41     1.1.1.1.2.2
  +++ Jikes.java        2001/07/05 17:57:54     1.1.1.1.2.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.1.1.1.2.2 $ $Date: 2001/07/05 01:17:41 $
  + * @version $Revision: 1.1.1.1.2.3 $ $Date: 2001/07/05 17:57:54 $
    * @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