Browse Source

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


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275142 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 22 years ago
parent
commit
cfbc62561b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/main/org/apache/tools/ant/types/Description.java

+ 1
- 1
src/main/org/apache/tools/ant/types/Description.java View File

@@ -137,7 +137,7 @@ public class Description extends DataType {
UnknownElement ue = ((UnknownElement) task); UnknownElement ue = ((UnknownElement) task);
StringBuffer descComp = ue.getWrapper().getText(); StringBuffer descComp = ue.getWrapper().getText();
if (descComp != null) { if (descComp != null) {
description.append(descComp);
description.append((Object) descComp);
} }
} }
} }


Loading…
Cancel
Save