ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant IntrospectionHelper.java
Date Fri, 21 Dec 2001 10:55:14 GMT
bodewig     01/12/21 02:55:14

  Modified:    src/main/org/apache/tools/ant IntrospectionHelper.java
  Log:
  If addConfiguredXyz and addXyz (or createXyz) have been present in the
  same class, under some conditions, both would be called.
  
  This patch ensures that only the last method returned by the
  introspection methods for a given nested element will be used, no
  matter which comes last.
  
  Submitted by:	Adam Murdoch <adammurdoch_ml@yahoo.com>
  
  Revision  Changes    Path
  1.29      +2 -0      jakarta-ant/src/main/org/apache/tools/ant/IntrospectionHelper.java
  
  Index: IntrospectionHelper.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/IntrospectionHelper.java,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- IntrospectionHelper.java	2001/12/18 20:19:07	1.28
  +++ IntrospectionHelper.java	2001/12/21 10:55:14	1.29
  @@ -208,6 +208,7 @@
                           }
   
                       });
  +                nestedStorers.remove(propName);
   
               } else if (name.startsWith("addConfigured")
                          && java.lang.Void.TYPE.equals(returnType)
  @@ -265,6 +266,7 @@
                               }
   
                           });
  +                    nestedStorers.remove(name);
                   } catch (NoSuchMethodException nse) {
                   }
               }
  
  
  

--
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