ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r473792 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Replace.java
Date Sat, 11 Nov 2006 20:16:44 GMT
Author: jkf
Date: Sat Nov 11 12:16:43 2006
New Revision: 473792

URL: http://svn.apache.org/viewvc?view=rev&rev=473792
Log:
Pre JDK 1.4 compatibility (even when compiled on JDK 1.4 or later)

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Replace.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Replace.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Replace.java?view=diff&rev=473792&r1=473791&r2=473792
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Replace.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Replace.java Sat Nov 11 12:16:43
2006
@@ -271,7 +271,8 @@
          */
         void flush() {
             replace();
-            outputBuffer.append(inputBuffer);
+            // Avoid runtime problem on pre 1.4 when compiling post 1.4
+            outputBuffer.append(inputBuffer.toString());
             inputBuffer.delete(0, inputBuffer.length());
         }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message