You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by co...@apache.org on 2002/04/04 16:00:29 UTC
cvs commit: jakarta-ant/src/main/org/apache/tools/ant/types FileSet.java
conor 02/04/04 06:00:29
Modified: src/main/org/apache/tools/ant/types FileSet.java
Log:
Remove check which prevents fileset subclasses being passed by reference
where a fileset is expected.
Revision Changes Path
1.26 +1 -1 jakarta-ant/src/main/org/apache/tools/ant/types/FileSet.java
Index: FileSet.java
===================================================================
RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/types/FileSet.java,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -w -u -r1.25 -r1.26
--- FileSet.java 3 Apr 2002 11:24:54 -0000 1.25
+++ FileSet.java 4 Apr 2002 14:00:29 -0000 1.26
@@ -327,7 +327,7 @@
}
Object o = ref.getReferencedObject(p);
- if (!o.getClass().equals(getClass())) {
+ if (!getClass().isAssignableFrom(o.getClass())) {
String msg = ref.getRefId()+" doesn\'t denote a " + dataTypeName;
throw new BuildException(msg);
} else {
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>