diff --git a/src/main/org/apache/tools/ant/UnknownElement.java b/src/main/org/apache/tools/ant/UnknownElement.java
index ceb42e8ca..9a0165376 100644
--- a/src/main/org/apache/tools/ant/UnknownElement.java
+++ b/src/main/org/apache/tools/ant/UnknownElement.java
@@ -456,15 +456,15 @@ public class UnknownElement extends Task {
* @param what The kind of thing being created. For example, when
* a task name could not be found, this would be
* "task"
. Should not be null
.
- * @param elementName The name of the element which could not be found.
- * Should not be null
.
+ * @param name The name of the element which could not be found.
+ * Should not be null
.
*
* @return a detailed description of what might have caused the problem.
*/
protected BuildException getNotFoundException(String what,
- String elementName) {
+ String name) {
ComponentHelper helper = ComponentHelper.getComponentHelper(getProject());
- String msg = helper.diagnoseCreationFailure(elementName, what);
+ String msg = helper.diagnoseCreationFailure(name, what);
return new BuildException(msg, getLocation());
}