ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From co...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/types FileSet.java
Date Thu, 04 Apr 2002 14:00:29 GMT
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:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message