jeremias    2003/06/06 00:28:00

  Modified:    src/org/apache/fop/layout Tag: fop-0_20_2-maintain
                        LineArea.java
  Log:
  Fix NoSuchMethodError when FOP is compiled under JDK1.4 but run under JDK1.3.
  Reason: StringBuffer.append(StringBuffer) has been added with JDK1.4.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.53.2.19 +4 -4      xml-fop/src/org/apache/fop/layout/Attic/LineArea.java
  
  Index: LineArea.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/layout/Attic/LineArea.java,v
  retrieving revision 1.53.2.18
  retrieving revision 1.53.2.19
  diff -u -r1.53.2.18 -r1.53.2.19
  --- LineArea.java     20 May 2003 20:50:52 -0000      1.53.2.18
  +++ LineArea.java     6 Jun 2003 07:27:59 -0000       1.53.2.19
  @@ -1214,7 +1214,7 @@
               return wordStart;
           } else if (hyph == null && preString != null) {
               // no hyphenation points, but a inword non-letter character
  -            remainingString.append(preString);
  +            remainingString.append(preString.toString());
               this.addWord(remainingString, startw, ls, textState);
               return wordStart + remainingString.length();
           } else if (hyph != null && preString == null) {
  @@ -1230,12 +1230,12 @@
               // hyphenation points and a inword non letter character
               int index = getFinalHyphenationPoint(hyph, remainingWidth);
               if (index != -1) {
  -                
remainingString.append(preString.append(hyph.getPreHyphenText(index)));
  +                
remainingString.append(preString.append(hyph.getPreHyphenText(index)).toString());
                   remainingString.append(this.hyphProps.hyphenationChar);
                   this.addWord(remainingString, startw, ls, textState);
                   return wordStart + remainingString.length() - 1;
               } else {
  -                remainingString.append(preString);
  +                remainingString.append(preString.toString());
                   this.addWord(remainingString, startw, ls, textState);
                   return wordStart + remainingString.length();
               }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to