diff --git a/WHATSNEW b/WHATSNEW index 91123539f..2caaec44c 100644 --- a/WHATSNEW +++ b/WHATSNEW @@ -13,6 +13,11 @@ Changes that could break older environments: Fixed bugs: ----------- + * setDynamicAttribute on MacroInstance now lower-cases the attribute + name in order to allow users of the API to use the attributes names + they have specified. + Bugzilla Report 59339 + Other changes: -------------- diff --git a/src/main/org/apache/tools/ant/taskdefs/MacroInstance.java b/src/main/org/apache/tools/ant/taskdefs/MacroInstance.java index 32b1a1a25..682ca1245 100644 --- a/src/main/org/apache/tools/ant/taskdefs/MacroInstance.java +++ b/src/main/org/apache/tools/ant/taskdefs/MacroInstance.java @@ -81,7 +81,7 @@ public class MacroInstance extends Task implements DynamicAttribute, TaskContain * @param value the value of the attribute */ public void setDynamicAttribute(String name, String value) { - map.put(name, value); + map.put(name.toLowerCase(Locale.ENGLISH), value); } /**