Browse Source

Change dynamicConfigurator#create(Name) to pass in the localname

of a namespaced element name and not the internal stingized verion
of the namespaced element name. The local name is lower cased to
be backward compatible with ant 1.5.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275771 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 21 years ago
parent
commit
10beb46f08
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/main/org/apache/tools/ant/IntrospectionHelper.java

+ 2
- 1
src/main/org/apache/tools/ant/IntrospectionHelper.java View File

@@ -659,7 +659,8 @@ public final class IntrospectionHelper implements BuildListener {
}
if (nc == null && parent instanceof DynamicConfigurator) {
DynamicConfigurator dc = (DynamicConfigurator) parent;
final Object nestedElement = dc.createDynamicElement(elementName);
final Object nestedElement =
dc.createDynamicElement(name.toLowerCase(Locale.US));
if (nestedElement != null) {
nc = new NestedCreator() {
public boolean isPolyMorphic() {


Loading…
Cancel
Save