diff --git a/docs/manual/OptionalTasks/script.html b/docs/manual/OptionalTasks/script.html
index 8d55f9b8d..559186d4c 100644
--- a/docs/manual/OptionalTasks/script.html
+++ b/docs/manual/OptionalTasks/script.html
@@ -62,7 +62,9 @@ to an explanation: by Norris Boyd in the newsgroup
netscape.public.mozilla.jseng.
-
+If you are creating Targets programmatically, make sure you set the
+Location to a useful value. In particular all targets should have
+different location values.
Parameters
diff --git a/src/main/org/apache/tools/ant/Target.java b/src/main/org/apache/tools/ant/Target.java
index e9e168ad6..f92369e35 100644
--- a/src/main/org/apache/tools/ant/Target.java
+++ b/src/main/org/apache/tools/ant/Target.java
@@ -29,6 +29,10 @@ import org.apache.tools.ant.property.LocalProperties;
/**
* Class to implement a target object with required parameters.
+ *
+ * If you are creating Targets programmatically, make sure you set
+ * the Location to a useful value. In particular all targets should
+ * have different location values.
*/
public class Target implements TaskContainer {