ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant/types Description.java
Date Tue, 26 Aug 2003 08:34:49 GMT
bodewig     2003/08/26 01:34:49

  Modified:    src/main/org/apache/tools/ant/types Description.java
  Log:
  explicitly cast StringBuffer to Object so that the "right" append
  method gets chosen.  This ensures that a JDK 1.4 compiled Ant can be
  run on JDK 1.2.  Well, makes it more likely.
  
  PR: 22705
  
  Revision  Changes    Path
  1.15      +2 -2      ant/src/main/org/apache/tools/ant/types/Description.java
  
  Index: Description.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/types/Description.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- Description.java	23 Jul 2003 10:50:32 -0000	1.14
  +++ Description.java	26 Aug 2003 08:34:49 -0000	1.15
  @@ -137,7 +137,7 @@
               UnknownElement ue = ((UnknownElement) task);
               StringBuffer descComp = ue.getWrapper().getText();
               if (descComp != null) {
  -                description.append(descComp);
  +                description.append((Object) descComp);
               }
           }
       }
  
  
  

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


Mime
View raw message